Commit fb8473da authored by Ralph Pichler's avatar Ralph Pichler Committed by GitHub

readd server accounting check in retrieval test (#519)

parent ffc450d5
...@@ -140,6 +140,10 @@ func TestDelivery(t *testing.T) { ...@@ -140,6 +140,10 @@ func TestDelivery(t *testing.T) {
t.Fatalf("unexpected balance on client. want %d got %d", -price, clientBalance) t.Fatalf("unexpected balance on client. want %d got %d", -price, clientBalance)
} }
serverBalance, _ := serverMockAccounting.Balance(peerID)
if serverBalance != int64(price) {
t.Fatalf("unexpected balance on server. want %d got %d", price, serverBalance)
}
} }
type mockPeerSuggester struct { type mockPeerSuggester struct {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment