File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -15,6 +15,9 @@ import (
1515)
1616
1717func 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 )
You can’t perform that action at this time.
0 commit comments