Fix user banned test

Signed-off-by: Marcos Lilljedahl <marcosnils@gmail.com>
This commit is contained in:
Marcos Lilljedahl
2020-10-03 09:53:58 -03:00
parent f13aca9092
commit 58a3432a4e

View File

@@ -97,7 +97,7 @@ func TestSessionFailWhenUserIsBanned(t *testing.T) {
p.generator = _g p.generator = _g
playground := &types.Playground{Id: "foobar"} playground := &types.Playground{Id: "foobar"}
sConfig := types.SessionConfig{Playground: playground, UserId: "", Duration: time.Hour, Stack: "", StackName: "", ImageName: ""} sConfig := types.SessionConfig{Playground: playground, UserId: "some_user", Duration: time.Hour, Stack: "", StackName: "", ImageName: ""}
s, e := p.SessionNew(context.Background(), sConfig) s, e := p.SessionNew(context.Background(), sConfig)
assert.NotNil(t, e) assert.NotNil(t, e)
assert.Nil(t, s) assert.Nil(t, s)