Skip to content

Commit

Permalink
readwriter: replace unnecessary DeepEquals with Equals in test
Browse files Browse the repository at this point in the history
  • Loading branch information
ferhatelmas committed Nov 23, 2017
1 parent 12a88f0 commit 6fdea5a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions readwriter_test.go
Expand Up @@ -67,7 +67,7 @@ func (s *ReadWriterSuite) testWriteRead(c *C, f *os.File, iter int) {

index, err := rw.Index()
c.Assert(err, IsNil)
c.Assert(len(index), Equals, iters*iter + i+1)
c.Assert(len(index), Equals, iters*iter+i+1)

e := index.Find(curName)
c.Assert(e, NotNil)
Expand Down Expand Up @@ -128,7 +128,7 @@ func (s *ReadWriterSuite) TestOverwriteExisting(c *C) {
c.Assert(err, IsNil)
written, err := ioutil.ReadAll(sr)
c.Assert(err, IsNil)
c.Assert(string(written), DeepEquals, "foo")
c.Assert(string(written), Equals, "foo")

err = rw.WriteHeader(&siva.Header{
Name: "foo",
Expand All @@ -148,7 +148,7 @@ func (s *ReadWriterSuite) TestOverwriteExisting(c *C) {
c.Assert(err, IsNil)
written, err = ioutil.ReadAll(sr)
c.Assert(err, IsNil)
c.Assert(string(written), DeepEquals, "bar")
c.Assert(string(written), Equals, "bar")
c.Assert(rw.Close(), IsNil)
}

Expand Down

0 comments on commit 6fdea5a

Please sign in to comment.