Fix test assertion

The assertion was the other way round.
parent b9e53794
......@@ -728,7 +728,7 @@ func TestInteractiveTerminal(t *testing.T) {
u := url.URL{Scheme: "ws", Host: srv.Listener.Addr().String(), Path: build.Session.Endpoint + "/exec"}
conn, resp, err := websocket.DefaultDialer.Dial(u.String(), http.Header{"Authorization": []string{build.Session.Token}})
assert.NoError(t, err)
assert.Equal(t, resp.StatusCode, c.expectedStatusCode)
assert.Equal(t, c.expectedStatusCode, resp.StatusCode)
defer func() {
if conn != nil {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment