Skip to content

Commit

Permalink
variable: fix unexpected failure for TestSetTiDBCloudStorageURI (pi…
Browse files Browse the repository at this point in the history
  • Loading branch information
bb7133 authored Feb 2, 2024
1 parent 35a7c9e commit 9aabf72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/sessionctx/variable/sysvar_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1416,7 +1416,7 @@ func TestSetTiDBCloudStorageURI(t *testing.T) {

// Set to s3, should fail
err = mock.SetGlobalSysVar(ctx, TiDBCloudStorageURI, "s3://blackhole")
require.ErrorContains(t, err, "bucket blackhole")
require.Error(t, err, "unreachable storage URI")

s := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
w.WriteHeader(200)
Expand Down

0 comments on commit 9aabf72

Please sign in to comment.