Skip to content

Commit

Permalink
fix flaky test
Browse files Browse the repository at this point in the history
  • Loading branch information
mmarchetti committed Apr 3, 2024
1 parent e0db897 commit 3408379
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions internal/publish/publish_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -254,12 +254,12 @@ func (s *PublishSuite) publishWithClient(

publisher.emitErrorEvents(err, s.log)
}
if stateStore.Target != nil {
if target != nil {
if target != nil {
// Creation date is not updated on deployment
s.Equal(stateStore.Target.CreatedAt, stateStore.Target.CreatedAt)
if stateStore.Target != nil {
// Successful redeployment should update the timestamp.
s.NotEqual(stateStore.Target.CreatedAt, stateStore.Target.DeployedAt)
} else {
s.Equal(stateStore.Target.CreatedAt, stateStore.Target.DeployedAt)
}
}
couldCreateDeployment := (authErr == nil && capErr == nil && createErr == nil)
Expand Down

0 comments on commit 3408379

Please sign in to comment.