Skip to content

Commit

Permalink
[fixup] pass testing.T to the newTestApp function
Browse files Browse the repository at this point in the history
  • Loading branch information
dylanlott committed Jul 12, 2023
1 parent 308ce65 commit 2d53dc1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions persistence/trees/trees_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ func newTestPersistenceModule(t *testing.T, databaseUrl string) modules.Persiste
return persistenceMod.(modules.PersistenceModule)
}
func createAndInsertDefaultTestApp(t *testing.T, db *persistence.PostgresContext) (*coreTypes.Actor, error) {
app, err := newTestApp()
app, err := newTestApp(t)
if err != nil {
return nil, err
}
Expand Down Expand Up @@ -130,15 +130,15 @@ func createAndInsertDefaultTestApp(t *testing.T, db *persistence.PostgresContext
DefaultUnstakingHeight)
}

func newTestApp() (*coreTypes.Actor, error) {
func newTestApp(t *testing.T) (*coreTypes.Actor, error) {
operatorKey, err := crypto.GeneratePublicKey()
if err != nil {
return nil, err
t.Errorf("failed to generate test app: %v", err)
}

outputAddr, err := crypto.GenerateAddress()
if err != nil {
return nil, err
t.Errorf("failed to generate test app: %v", err)
}

return &coreTypes.Actor{
Expand Down

0 comments on commit 2d53dc1

Please sign in to comment.