Skip to content

Commit

Permalink
chore: modify remaining items again
Browse files Browse the repository at this point in the history
  • Loading branch information
dongwlin committed Aug 3, 2024
1 parent 20620ee commit c1176c3
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions status_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ func TestStatus_Invalid(t *testing.T) {
},
{
name: "IsStatusFailed",
status: StatusFailed,
status: StatusFailure,
expect: false,
},
}
Expand Down Expand Up @@ -74,7 +74,7 @@ func TestStatus_Pending(t *testing.T) {
},
{
name: "IsStatusFailed",
status: StatusFailed,
status: StatusFailure,
expect: false,
},
}
Expand Down Expand Up @@ -115,7 +115,7 @@ func TestStatus_Running(t *testing.T) {
},
{
name: "IsStatusFailed",
status: StatusFailed,
status: StatusFailure,
expect: false,
},
}
Expand Down Expand Up @@ -156,7 +156,7 @@ func TestStatus_Success(t *testing.T) {
},
{
name: "IsStatusFailed",
status: StatusFailed,
status: StatusFailure,
expect: false,
},
}
Expand Down Expand Up @@ -197,14 +197,14 @@ func TestStatus_Failed(t *testing.T) {
},
{
name: "IsStatusFailed",
status: StatusFailed,
status: StatusFailure,
expect: true,
},
}

for _, tc := range testCases {
t.Run(tc.name, func(t *testing.T) {
got := tc.status.Failed()
got := tc.status.Failure()
require.Equal(t, tc.expect, got)
})
}
Expand Down Expand Up @@ -238,7 +238,7 @@ func TestStatus_Done(t *testing.T) {
},
{
name: "IsStatusFailed",
status: StatusFailed,
status: StatusFailure,
expect: true,
},
}
Expand Down

0 comments on commit c1176c3

Please sign in to comment.