fix broken GetInstanceAccount selector (#311)

* fix broken GetInstanceAccount selector

* patch tests
This commit is contained in:
tobi 2021-11-17 14:40:39 +01:00 committed by GitHub
commit f3e36de78a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View file

@ -37,7 +37,7 @@ func (suite *AdminTestSuite) TestCreateInstanceAccount() {
testrig.CreateTestTables(suite.db)
// make sure there's no instance account in the db yet
acct, err := suite.db.GetInstanceAccount(context.Background(), suite.config.Host)
acct, err := suite.db.GetInstanceAccount(context.Background(), "")
suite.Error(err)
suite.Nil(acct)
@ -46,7 +46,7 @@ func (suite *AdminTestSuite) TestCreateInstanceAccount() {
suite.NoError(err)
// and now check it exists
acct, err = suite.db.GetInstanceAccount(context.Background(), suite.config.Host)
acct, err = suite.db.GetInstanceAccount(context.Background(), "")
suite.NoError(err)
suite.NotNil(acct)
}