Skip to content

Commit

Permalink
use literal error strings in test
Browse files Browse the repository at this point in the history
  • Loading branch information
qingyang-hu committed Feb 20, 2025
1 parent 05cf972 commit ec7067d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions bson/bson_binary_vector_spec_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -142,10 +142,10 @@ func runBsonBinaryVectorTest(t *testing.T, testKey string, test bsonBinaryVector
}

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

t.Parallel()
Expand Down

0 comments on commit ec7067d

Please sign in to comment.