Skip to content

Commit 7faa08d

Browse files
author
Aaron Schlesinger
committed
fix(pkg/gitreceive/storage/auth_test.go): rename tests to fit what they do
1 parent 92b9bd0 commit 7faa08d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

pkg/gitreceive/storage/auth_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,15 @@ func TestGetAuthEmptyAuth(t *testing.T) {
1515
assert.Equal(t, creds, credentials.AnonymousCredentials, "returned credentials")
1616
}
1717

18-
func TestGetAuthMissingKey(t *testing.T) {
18+
func TestGetAuthMissingSecret(t *testing.T) {
1919
fs := sys.NewFakeFS()
2020
fs.Files[accessSecretKeyFile] = []byte("hello world")
2121
creds, err := getAuth(fs)
2222
assert.Err(t, err, errMissingKey)
2323
assert.True(t, creds == nil, "returned credentials were not nil")
2424
}
2525

26-
func TestGetAuthMissingSecret(t *testing.T) {
26+
func TestGetAuthMissingKey(t *testing.T) {
2727
fs := sys.NewFakeFS()
2828
fs.Files[accessKeyIDFile] = []byte("hello world")
2929
creds, err := getAuth(fs)

0 commit comments

Comments
 (0)