Skip to content

Commit 7bd1658

Browse files
committed
Added skip to unit test, as it must be run with a full mainenet database
1 parent 9647419 commit 7bd1658

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

node/average_test.go

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ import (
1515
)
1616

1717
func TestAveragePeriod(t *testing.T) {
18+
19+
t.Skip("Should not be run as part of automated tests")
20+
1821
ctx, cancel := context.WithCancel(context.Background())
1922
exit.GlobalExitHandler.AddCancel(cancel)
2023
_ = ctx
@@ -44,12 +47,13 @@ func TestAveragePeriod(t *testing.T) {
4447
for pAsset, v := range averages {
4548
fmt.Sprintf("%6s %15d", pAsset, v)
4649
}
47-
// Get the rate for FCT at the current height
48-
price := n.LastAveragesData[fat2.PTickerFCT][len(n.LastAveragesData[fat2.PTickerFCT])-1]
49-
avgPrice := averages[fat2.PTickerFCT]
5050

5151
// Write out a tab delineated file to plot to double check the averages against the values
52-
// fctDat.WriteString(fmt.Sprintf("%f\t%f\n", float64(price)/100000000, float64(avgPrice)/100000000))
52+
//
53+
// // Get the rate for FCT at the current height
54+
// price := n.LastAveragesData[fat2.PTickerFCT][len(n.LastAveragesData[fat2.PTickerFCT])-1]
55+
// avgPrice := averages[fat2.PTickerFCT]
56+
// fctDat.WriteString(fmt.Sprintf("%f\t%f\n", float64(price)/100000000, float64(avgPrice)/100000000))
5357

5458
if i%10000 == 0 {
5559
fmt.Printf("%6d ", i)

0 commit comments

Comments
 (0)