Skip to content
This repository was archived by the owner on Feb 7, 2024. It is now read-only.

Commit 2960bf9

Browse files
committed
add basic tests for stats and swarm peers
1 parent 7173b3c commit 2960bf9

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

shell_test.go

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,3 +242,17 @@ func TestDagPut(t *testing.T) {
242242
is.Nil(err)
243243
is.Equal(c, "zdpuAt47YjE9XTgSxUBkiYCbmnktKajQNheQBGASHj3FfYf8M")
244244
}
245+
246+
func TestStatsBW(t *testing.T) {
247+
is := is.New(t)
248+
s := NewShell(shellUrl)
249+
_, err := s.StatsBW()
250+
is.Nil(err)
251+
}
252+
253+
func TestSwarmPeers(t *testing.T) {
254+
is := is.New(t)
255+
s := NewShell(shellUrl)
256+
_, err := s.SwarmPeers()
257+
is.Nil(err)
258+
}

0 commit comments

Comments
 (0)