Skip to content

Commit 62e1578

Browse files
committed
Removed recording of TestGetAccount
1 parent c0c797b commit 62e1578

File tree

2 files changed

+7
-54
lines changed

2 files changed

+7
-54
lines changed

upcloud/service/fixtures/getaccount.yaml

Lines changed: 0 additions & 45 deletions
This file was deleted.

upcloud/service/service_test.go

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -129,16 +129,14 @@ func teardown() {
129129

130130
// TestGetAccount tests that the GetAccount() method returns proper data
131131
func TestGetAccount(t *testing.T) {
132-
record(t, "getaccount", func(t *testing.T, svc *Service) {
133-
134-
account, err := svc.GetAccount()
135-
username, _ := getCredentials()
136-
require.NoError(t, err)
132+
svc := getService()
133+
account, err := svc.GetAccount()
134+
username, _ := getCredentials()
135+
require.NoError(t, err)
137136

138-
if account.UserName != username {
139-
t.Errorf("TestGetAccount expected %s, got %s", username, account.UserName)
140-
}
141-
})
137+
if account.UserName != username {
138+
t.Errorf("TestGetAccount expected %s, got %s", username, account.UserName)
139+
}
142140
}
143141

144142
// TestGetZones tests that the GetZones() function returns proper data

0 commit comments

Comments
 (0)