Skip to content
This repository has been archived by the owner on Mar 22, 2023. It is now read-only.

Commit

Permalink
handles signature change issues from concurrent MRs (#1366)
Browse files Browse the repository at this point in the history
  • Loading branch information
shamsimam authored Jun 4, 2021
1 parent f9a98f5 commit babeaad
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions waiter/test/waiter/token_test.clj
Original file line number Diff line number Diff line change
Expand Up @@ -2875,20 +2875,20 @@
(set (json/read-str body))))
(is (nil? (async/poll! token-watch-channels-update-chan))))
(let [request {:request-method :get :query-string "env.E1=v0"}
{:keys [body status]} (handle-list-tokens-request kv-store entitlement-manager streaming-timeout-ms token-watch-channels-update-chan request)]
{:keys [body status]} (handle-list-tokens-request retrieve-descriptor-fn kv-store entitlement-manager streaming-timeout-ms token-watch-channels-update-chan request)]
(is (= http-200-ok status))
(is (= #{{"maintenance" false, "owner" "owner3", "token" "token8"}
{"maintenance" true, "owner" "owner3", "token" "token9"}}
(set (json/read-str body))))
(is (nil? (async/poll! token-watch-channels-update-chan))))
(let [request {:request-method :get :query-string "env.P2=v2"}
{:keys [body status]} (handle-list-tokens-request kv-store entitlement-manager streaming-timeout-ms token-watch-channels-update-chan request)]
{:keys [body status]} (handle-list-tokens-request retrieve-descriptor-fn kv-store entitlement-manager streaming-timeout-ms token-watch-channels-update-chan request)]
(is (= http-200-ok status))
(is (= #{{"maintenance" true, "owner" "owner3", "token" "token9"}}
(set (json/read-str body))))
(is (nil? (async/poll! token-watch-channels-update-chan))))
(let [request {:request-method :get :query-string "env.V1=e1&metadata.f1=m1"}
{:keys [body status]} (handle-list-tokens-request kv-store entitlement-manager streaming-timeout-ms token-watch-channels-update-chan request)]
{:keys [body status]} (handle-list-tokens-request retrieve-descriptor-fn kv-store entitlement-manager streaming-timeout-ms token-watch-channels-update-chan request)]
(is (= http-200-ok status))
(is (= #{{"maintenance" false, "owner" "owner3", "token" "token5"}}
(set (json/read-str body))))
Expand Down

0 comments on commit babeaad

Please sign in to comment.