Skip to content

Commit

Permalink
test: update assertions
Browse files Browse the repository at this point in the history
  • Loading branch information
zepatrik authored and aeneasr committed Aug 14, 2023
1 parent f133716 commit 2fed8d1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions driver/config/provider_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,8 @@ func TestCORSOptions(t *testing.T) {

conf, enabled := p.CORS(ctx, PublicInterface)
assert.True(t, enabled)
assert.NotNil(t, conf.AllowOriginRequestFunc)
conf.AllowOriginRequestFunc = nil

assert.EqualValues(t, cors.Options{
AllowedOrigins: []string{},
Expand Down

0 comments on commit 2fed8d1

Please sign in to comment.