Skip to content

Commit 3011533

Browse files
author
Divjot Arora
authored
Change w value for unsatisfiable write concern in tests (#301)
- Addresses test failures that started after by SERVER-45920
1 parent 0b6bd2f commit 3011533

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mongo/integration/collection_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ func TestCollection(t *testing.T) {
3939
// impossibleWc is a write concern that can't be satisfied and is used to test write concern errors
4040
// for various operations. It includes a timeout because legacy servers will wait for all W nodes to respond,
4141
// causing tests to hang.
42-
impossibleWc := writeconcern.New(writeconcern.W(500), writeconcern.WTimeout(time.Second))
42+
impossibleWc := writeconcern.New(writeconcern.W(30), writeconcern.WTimeout(time.Second))
4343

4444
mt.RunOpts("insert one", noClientOpts, func(mt *mtest.T) {
4545
mt.Run("success", func(mt *mtest.T) {

0 commit comments

Comments
 (0)