Skip to content

Commit

Permalink
ping it now
Browse files Browse the repository at this point in the history
  • Loading branch information
hyorigo committed Jul 22, 2024
1 parent bab66de commit b649253
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions lib/net/network_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,16 @@ func TestLoadModule_Network(t *testing.T) {
assert.true(s.success > 0)
`),
},
{
name: `tcping: faster`,
script: itn.HereDoc(`
load('net', 'tcping')
s = tcping('bing.com', count=10, timeout=5, interval=0.01)
print(s)
assert.eq(s.total, 10)
assert.true(s.success > 0)
`),
},
}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
Expand Down

0 comments on commit b649253

Please sign in to comment.