Skip to content
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

services/ticker: add test logs to identify inputs that make test flaky #2064

Merged
merged 2 commits into from
Dec 16, 2019
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions services/ticker/internal/tickerdb/queries_asset_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ func TestInsertOrUpdateAsset(t *testing.T) {

// Creating first asset:
firstTime := time.Now()
t.Log("firstTime:", firstTime)
a := Asset{
Code: code,
IssuerAccount: issuerAccount,
Expand Down Expand Up @@ -88,6 +89,7 @@ func TestInsertOrUpdateAsset(t *testing.T) {

// Creating Seconde Asset:
secondTime := time.Now()
t.Log("secondTime:", secondTime)
a.LastValid = secondTime
a.LastChecked = secondTime
err = session.InsertOrUpdateAsset(&a, []string{"code", "issuer_account", "issuer_id"})
Expand Down Expand Up @@ -122,6 +124,7 @@ func TestInsertOrUpdateAsset(t *testing.T) {

// Creating Third Asset:
thirdTime := time.Now()
t.Log("thirdTime:", thirdTime)
a.LastValid = thirdTime
a.LastChecked = thirdTime
err = session.InsertOrUpdateAsset(&a, []string{"code", "issuer_id", "last_valid", "last_checked", "issuer_account"})
Expand Down