Add some delay to postgres create user test to verify expiration isn't immediate

This commit is contained in:
Jeff Mitchell
2017-11-30 09:35:47 -05:00
parent 6b474fb169
commit f6839fb9d6

View File

@@ -144,6 +144,9 @@ func TestPostgreSQL_CreateUser(t *testing.T) {
t.Fatalf("err: %s", err)
}
// Sleep to make sure we haven't expired if granularity is only down to the second
time.Sleep(2 * time.Second)
if err = testCredsExist(t, connURL, username, password); err != nil {
t.Fatalf("Could not connect with new credentials: %s", err)
}