-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ensure tests verify request params #1047
Ensure tests verify request params #1047
Conversation
fa690a2
to
5fc828e
Compare
@@ -259,7 +279,7 @@ func TestAPIs(t *testing.T) { | |||
reqPath: "/api/v1/query", | |||
reqParam: url.Values{ | |||
"query": []string{"2"}, | |||
"time": []string{testTime.Format(time.RFC3339Nano)}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tests formatted via testTime.Format(time.RFC3339Nano)
currently fail with the following error message:
unexpected request parameters: want map[query:[2] time:[1651799194.268618]], got map[query:[2] time:[2022-05-06T02:06:34.268618+01:00]]
so I've updated the tests to use formatTime
for the time being, which is the same function used by the client.
We've removed 1.16 support. It worths rebasing #1062 |
@kakkoyun Okay, thanks. Hoping to getting around finishing this PR soon. |
Signed-off-by: Joseph Woodward <[email protected]>
Signed-off-by: Joseph Woodward <[email protected]>
5480d34
to
778954f
Compare
Rebased your PR if you don't mind 🙈 |
Signed-off-by: bwplotka <[email protected]>
No description provided.