diff options
author | KN4CK3R <admin@oldschoolhack.me> | 2023-04-22 23:56:27 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-22 17:56:27 -0400 |
commit | f1173d6879cb26af21483037fae72542f3088408 (patch) | |
tree | a1ed73fb2a42c351005974698076f5ee82489d5d /cmd | |
parent | ac384c4e1d207a989d0f646ebc14fd0c26427d4c (diff) | |
download | gitea-f1173d6879cb26af21483037fae72542f3088408.tar.gz gitea-f1173d6879cb26af21483037fae72542f3088408.zip |
Use more specific test methods (#24265)
Co-authored-by: silverwind <me@silverwind.io>
Co-authored-by: Giteabot <teabot@gitea.io>
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/migrate_storage_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/migrate_storage_test.go b/cmd/migrate_storage_test.go index aae366c0cf..e6658b6e65 100644 --- a/cmd/migrate_storage_test.go +++ b/cmd/migrate_storage_test.go @@ -67,7 +67,7 @@ func TestMigratePackages(t *testing.T) { entries, err := os.ReadDir(p) assert.NoError(t, err) - assert.EqualValues(t, 2, len(entries)) + assert.Len(t, entries, 2) assert.EqualValues(t, "01", entries[0].Name()) assert.EqualValues(t, "tmp", entries[1].Name()) } |