-
Notifications
You must be signed in to change notification settings - Fork 2
Update usages of Cfg to use app.config and use static senders for rewards #588
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
|
||
| func TestRecordBalanceHistoryConflictHandling(t *testing.T) { | ||
| pool := database.CreateTestDatabase(t, "test_api") | ||
| pool := database.CreateTestDatabase(t, "test_jobs") |
There was a problem hiding this comment.
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", |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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} |
There was a problem hiding this comment.
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
No description provided.