Skip to content

Commit ec7067d

Browse files
committed
use literal error strings in test
1 parent 05cf972 commit ec7067d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

bson/bson_binary_vector_spec_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -142,10 +142,10 @@ func runBsonBinaryVectorTest(t *testing.T, testKey string, test bsonBinaryVector
142142
}
143143

144144
errMap := map[string]string{
145-
"FLOAT32 with padding": errNonZeroVectorPadding.Error(),
146-
"INT8 with padding": errNonZeroVectorPadding.Error(),
147-
"Padding specified with no vector data PACKED_BIT": errNonZeroVectorPadding.Error(),
148-
"Exceeding maximum padding PACKED_BIT": errVectorPaddingTooLarge.Error(),
145+
"FLOAT32 with padding": "padding must be 0",
146+
"INT8 with padding": "padding must be 0",
147+
"Padding specified with no vector data PACKED_BIT": "padding must be 0",
148+
"Exceeding maximum padding PACKED_BIT": "padding cannot be larger than 7",
149149
}
150150

151151
t.Parallel()

0 commit comments

Comments
 (0)