Skip to content

Commit

Permalink
remove UpdateMinerFeesConcurrent test
Browse files Browse the repository at this point in the history
  • Loading branch information
jadwahab committed Mar 24, 2023
1 parent b17efbb commit 7385d6a
Showing 1 changed file with 25 additions and 25 deletions.
50 changes: 25 additions & 25 deletions fees_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -365,31 +365,31 @@ func TestFeeQuotes_UpdateMinerFees(t *testing.T) {
}
}

func TestFeeQuotes_UpdateMinerFeesConcurrent(_ *testing.T) {
fq := NewFeeQuotes("test")
wg := sync.WaitGroup{}
for i := 0; i < 10000; i++ {
wg.Add(1)
go func() {
defer wg.Done()
_, _ = fq.UpdateMinerFees("test", FeeTypeStandard, &Fee{
FeeType: FeeTypeStandard,
MiningFee: FeeUnit{
Satoshis: 100,
Bytes: 15,
},
RelayFee: FeeUnit{
Satoshis: 100,
Bytes: 25,
},
})
fq.AddMinerWithDefault("test")
_, _ = fq.Quote("test")
}()
}
wg.Wait()
// FIXME: how come there's no use of *testing.T?
}
// // FIXME: how come there's no use of *testing.T?
// func TestFeeQuotes_UpdateMinerFeesConcurrent(_ *testing.T) {
// fq := NewFeeQuotes("test")
// wg := sync.WaitGroup{}
// for i := 0; i < 10000; i++ {
// wg.Add(1)
// go func() {
// defer wg.Done()
// _, _ = fq.UpdateMinerFees("test", FeeTypeStandard, &Fee{
// FeeType: FeeTypeStandard,
// MiningFee: FeeUnit{
// Satoshis: 100,
// Bytes: 15,
// },
// RelayFee: FeeUnit{
// Satoshis: 100,
// Bytes: 25,
// },
// })
// fq.AddMinerWithDefault("test")
// _, _ = fq.Quote("test")
// }()
// }
// wg.Wait()
// }

func TestFeeQuotes_Quote(t *testing.T) {
t.Parallel()
Expand Down

0 comments on commit 7385d6a

Please sign in to comment.