Skip to content

Commit d796aa8

Browse files
committed
revise test structure
1 parent 41064c2 commit d796aa8

File tree

2 files changed

+2
-105
lines changed

2 files changed

+2
-105
lines changed

codersdk/deployment_test.go

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -570,7 +570,6 @@ func TestRemoveTrailingVersionInfo(t *testing.T) {
570570
t.Parallel()
571571

572572
testCases := []struct {
573-
Name string
574573
Version string
575574
ExpectedAfterStrippingInfo string
576575
}{
@@ -588,15 +587,7 @@ func TestRemoveTrailingVersionInfo(t *testing.T) {
588587
// Is this still necessary?
589588
tc := tc
590589

591-
t.Run(tc.Name, func(t *testing.T) {
592-
t.Parallel()
593-
594-
stripped := codersdk.RemoveTrailingVersionInfo(tc.Version)
595-
if !assert.Equal(t, tc.ExpectedAfterStrippingInfo, stripped) {
596-
// Log relevant information if the assertion fails
597-
t.Logf("Test failed for case: %s\nExpected: %s\nGot: %s", tc.Name, tc.ExpectedAfterStrippingInfo, stripped)
598-
}
599-
600-
})
590+
stripped := codersdk.RemoveTrailingVersionInfo(tc.Version)
591+
require.Equal(t, tc.ExpectedAfterStrippingInfo, stripped)
601592
}
602593
}

site/src/theme/icons.json

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

0 commit comments

Comments
 (0)