Skip to content

Commit

Permalink
PMM-12524 fix the api-test
Browse files Browse the repository at this point in the history
  • Loading branch information
ademidoff committed Dec 11, 2023
1 parent 6510020 commit 1f47375
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api-tests/server/settings_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -552,7 +552,7 @@ func TestSettings(t *testing.T) {
assert.Empty(t, res)
})

t.Run("NoAdminUserForSSH", func(t *testing.T) {
t.Run("ChangeSSHKey", func(t *testing.T) {
defer restoreSettingsDefaults(t)

sshKey := "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQClY/8sz3w03vA2bY6mBFgUzrvb2FIoHw8ZjUXGGClJzJg5HC" +
Expand All @@ -566,7 +566,7 @@ func TestSettings(t *testing.T) {
},
Context: pmmapitests.Context,
})
pmmapitests.AssertAPIErrorf(t, err, 500, codes.Internal, `Internal server error.`)
require.NoError(t, err)
assert.Empty(t, res)
})

Expand Down

0 comments on commit 1f47375

Please sign in to comment.