Skip to content

Commit

Permalink
Merge pull request #46 from ipfs/fix-test
Browse files Browse the repository at this point in the history
fix: tests
  • Loading branch information
2color authored Aug 21, 2024
2 parents 1ac2c0b + e454fca commit 91cf699
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ func TestBasicIntegration(t *testing.T) {

obj.Value("CidInDHT").Boolean().IsTrue()
obj.Value("ConnectionError").String().IsEmpty()
obj.Value("ConnectionMaddr").String().IsEqual(hostAddr.String())
obj.Value("ConnectionMaddrs").Array().ContainsAll(h.Addrs()[0])
obj.Value("DataAvailableOverBitswap").Object().Value("Error").String().IsEmpty()
obj.Value("DataAvailableOverBitswap").Object().Value("Found").Boolean().IsTrue()
obj.Value("DataAvailableOverBitswap").Object().Value("Responded").Boolean().IsTrue()
Expand All @@ -134,7 +134,7 @@ func TestBasicIntegration(t *testing.T) {

obj.Value("CidInDHT").Boolean().IsFalse()
obj.Value("ConnectionError").String().IsEmpty()
obj.Value("ConnectionMaddr").String().IsEqual(hostAddr.String())
obj.Value("ConnectionMaddrs").Array().ContainsAll(h.Addrs()[0])
obj.Value("DataAvailableOverBitswap").Object().Value("Error").String().IsEmpty()
obj.Value("DataAvailableOverBitswap").Object().Value("Found").Boolean().IsTrue()
obj.Value("DataAvailableOverBitswap").Object().Value("Responded").Boolean().IsTrue()
Expand All @@ -152,7 +152,7 @@ func TestBasicIntegration(t *testing.T) {

obj.Value("CidInDHT").Boolean().IsTrue()
obj.Value("ConnectionError").String().IsEmpty()
obj.Value("ConnectionMaddr").String().IsEqual(hostAddr.String())
obj.Value("ConnectionMaddrs").Array().ContainsAll(h.Addrs()[0])
obj.Value("DataAvailableOverBitswap").Object().Value("Error").String().IsEmpty()
obj.Value("DataAvailableOverBitswap").Object().Value("Found").Boolean().IsFalse()
obj.Value("DataAvailableOverBitswap").Object().Value("Responded").Boolean().IsTrue()
Expand Down

0 comments on commit 91cf699

Please sign in to comment.