Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
hgiasac committed Feb 11, 2024
1 parent 19a07b2 commit 4bf2b7c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion example/reference/connector.go
Original file line number Diff line number Diff line change
Expand Up @@ -969,7 +969,7 @@ func getCollectionByName(collectionName string, arguments schema.QueryRequestArg

// collections
case "articles":
for _, item := range state.Articles {
for _, item := range sortArticles(state.Articles, "id", false) {
row, err := schema.EncodeRow(item)
if err != nil {
return nil, err
Expand Down
3 changes: 1 addition & 2 deletions example/reference/connector_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ func assertHTTPResponse[B any](t *testing.T, res *http.Response, statusCode int,

if !internal.DeepEqual(body, expectedBody) {
expectedBytes, _ := json.Marshal(expectedBody)
t.Errorf("\nexpect: %+v\ngot: %+v", string(expectedBytes), string(bodyBytes))
t.Errorf("\nexpect: %+v\ngot : %+v", string(expectedBytes), string(bodyBytes))
t.FailNow()
}
}
Expand Down Expand Up @@ -125,7 +125,6 @@ func TestQuery(t *testing.T) {
}

assertHTTPResponse[schema.QueryResponse](t, res, http.StatusOK, expected)

})
}
}

0 comments on commit 4bf2b7c

Please sign in to comment.