Skip to content

Commit

Permalink
Tests: Change time usage to clock usage
Browse files Browse the repository at this point in the history
  • Loading branch information
VoigtS committed Mar 15, 2024
1 parent 94703ba commit d4c3635
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/api/commitment_test.go
Expand Up @@ -645,7 +645,7 @@ func Test_StartCommitmentTransfer(t *testing.T) {

// Test on unconfirmed commitment should fail.
// ID is 4, because 2 additional commitments were created previously.
var confirmBy = time.Now().Unix()
var confirmBy = s.Clock.Now().Unix()
req2 := assert.JSONObject{
"id": 4,
"service_type": "first",
Expand Down

0 comments on commit d4c3635

Please sign in to comment.