Skip to content

Conversation

@rickyrombo
Copy link
Contributor

No description provided.


func TestRecordBalanceHistoryConflictHandling(t *testing.T) {
pool := database.CreateTestDatabase(t, "test_api")
pool := database.CreateTestDatabase(t, "test_jobs")
Copy link
Contributor Author

@rickyrombo rickyrombo Dec 2, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fyi @dylanjeffers sorry I didn't catch this in initial review - each "package" of tests in go runs in parallel, and only one database can be created from a template at a time, so each package has its own template to use for tests to avoid race conditions

super annoying footgun but it makes tests faasstt

// Disable message push by default. Tests for it can create
// an RPC processor directly.
CommsMessagePush: false,
ChainId: "audius-devnet",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what's this change from?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we depend on this being devnet for the block_confirmation tests. I didn't realize we had a whole separate config we started here for tests :P

solanaPubKey := solana.PublicKeyFromBytes(testPublicKey)
testPubKeyBase58 := solanaPubKey.String()
config.Cfg.RewardCodeAuthorizedKeys = []string{testPubKeyBase58}
app.config.RewardCodeAuthorizedKeys = []string{testPubKeyBase58}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we should really just stick these into the test config, but leaving as-is for now

@rickyrombo rickyrombo merged commit aefb4a7 into main Dec 2, 2025
5 checks passed
@rickyrombo rickyrombo deleted the mjp-cfg branch December 2, 2025 22:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants