Skip to content

Commit

Permalink
test: resolve remaining linter errors on build
Browse files Browse the repository at this point in the history
  • Loading branch information
FabianPonce committed Sep 25, 2024
1 parent 70aa57d commit e1f1e38
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
issues:
exclude-rules:
# these operations are deprecated, and we properly parse the replacement message type, but
# support remains for the deprecated form of encoding
- path: mongo/operations.go
text: "SA1019: wiremessage.ReadQuery"
- path: mongo/operations.go
text: "SA1019: wiremessage.OpQuery"
2 changes: 1 addition & 1 deletion proxy/proxy_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ func TestProxyUnacknowledgedWrites(t *testing.T) {

// Create two *Collection instances: one for setup and basic operations and and one configured with an
// unacknowledged write concern for testing.
wc := writeconcern.New(writeconcern.W(0))
wc := writeconcern.Unacknowledged()
setupCollection := client.Database("test").Collection("test_proxy_unacknowledged_writes")
unackCollection, err := setupCollection.Clone(options.Collection().SetWriteConcern(wc))
assert.Nil(t, err)
Expand Down

0 comments on commit e1f1e38

Please sign in to comment.