From 37a6e8bf1b74d0b433a70c747e27b5ca22ede2d2 Mon Sep 17 00:00:00 2001 From: wwestgarth Date: Fri, 10 Nov 2023 10:45:26 +0000 Subject: [PATCH] fix: use market and asset prices in the correct places when updating a position on trade Signed-off-by: Elias Van Ootegem --- datanode/networkhistory/service_test.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/datanode/networkhistory/service_test.go b/datanode/networkhistory/service_test.go index 515a05e422..6639636e31 100644 --- a/datanode/networkhistory/service_test.go +++ b/datanode/networkhistory/service_test.go @@ -378,12 +378,12 @@ func TestMain(t *testing.M) { log.Infof("%s", goldenSourceHistorySegment[4000].HistorySegmentID) log.Infof("%s", goldenSourceHistorySegment[5000].HistorySegmentID) - panicIfHistorySegmentIdsNotEqual(goldenSourceHistorySegment[1000].HistorySegmentID, "QmNr4ofCWXy8XKacW67TseVA7Pjra48JxxgZMF2BfD3x4h", snapshots) - panicIfHistorySegmentIdsNotEqual(goldenSourceHistorySegment[2000].HistorySegmentID, "QmZRjdLEHUFvBPxagsFLNEkhTDW2DGingWjiNrZ1UvvvEN", snapshots) - panicIfHistorySegmentIdsNotEqual(goldenSourceHistorySegment[2500].HistorySegmentID, "QmS8Ts4pWaUsZHDS92mqFXhstSjsyUz59YCiW6cU9BgwNF", snapshots) - panicIfHistorySegmentIdsNotEqual(goldenSourceHistorySegment[3000].HistorySegmentID, "QmdNA2m3fzDn7bJhGSt2bWHFPEgqduQ3v4MVV4YhmdCP8j", snapshots) - panicIfHistorySegmentIdsNotEqual(goldenSourceHistorySegment[4000].HistorySegmentID, "QmWbuJkPyv2PCLZ2ZeK5PHtLwoSoZiRCWhkbwNJbCKm6Ax", snapshots) - panicIfHistorySegmentIdsNotEqual(goldenSourceHistorySegment[5000].HistorySegmentID, "QmeMMYzLy8wV6MCzPkNvNFNJ3aqU4tc4rhh8CLLNiqHhdr", snapshots) + panicIfHistorySegmentIdsNotEqual(goldenSourceHistorySegment[1000].HistorySegmentID, "QmapApyyHGXzu8A6op4VSXosQJ1cPyjDX7SBgKbfvbxwx9", snapshots) + panicIfHistorySegmentIdsNotEqual(goldenSourceHistorySegment[2000].HistorySegmentID, "QmWxwXeXHV4Pv9bEtMqQgSSuZB9UdfDbxABwdLqwgxs2b3", snapshots) + panicIfHistorySegmentIdsNotEqual(goldenSourceHistorySegment[2500].HistorySegmentID, "QmXtdoicvjfmDb7JQXroN9fUd6pY7Ld8Dbqiq1R29WcSyp", snapshots) + panicIfHistorySegmentIdsNotEqual(goldenSourceHistorySegment[3000].HistorySegmentID, "QmNdy5ekxW9LWuhD96GeMpmD41koUxNMhvUqCj7TXzPkj6", snapshots) + panicIfHistorySegmentIdsNotEqual(goldenSourceHistorySegment[4000].HistorySegmentID, "QmVw6ZWWNRGwmQ2BNYPVzwmdD8H4g7MpwNsrypzX8rVfec", snapshots) + panicIfHistorySegmentIdsNotEqual(goldenSourceHistorySegment[5000].HistorySegmentID, "QmSVkBYv7j4kh6H6QNFNFzzsFRV5KEk5bLMGKX13wqQxdY", snapshots) }, postgresRuntimePath, sqlFs) if exitCode != 0 {