Skip to content

Commit 58aef40

Browse files
committed
[FAB-10686] testutil->testify core/ledger/util
Change-Id: Ia47fc8f9fa060b4a94f5cce92be624af39148cfa Signed-off-by: Matthew Sykes <sykesmat@us.ibm.com>
1 parent 6409c4d commit 58aef40

File tree

3 files changed

+297
-298
lines changed

3 files changed

+297
-298
lines changed

core/ledger/util/couchdb/config_test.go

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,18 @@ import (
1010
"testing"
1111
"time"
1212

13-
"github.com/hyperledger/fabric/common/ledger/testutil"
1413
"github.com/spf13/viper"
14+
"github.com/stretchr/testify/assert"
1515
)
1616

1717
func TestGetCouchDBDefinition(t *testing.T) {
1818
expectedAddress := viper.GetString("ledger.state.couchDBConfig.couchDBAddress")
1919

2020
couchDBDef := GetCouchDBDefinition()
21-
testutil.AssertEquals(t, couchDBDef.URL, expectedAddress)
22-
testutil.AssertEquals(t, couchDBDef.Username, "")
23-
testutil.AssertEquals(t, couchDBDef.Password, "")
24-
testutil.AssertEquals(t, couchDBDef.MaxRetries, 3)
25-
testutil.AssertEquals(t, couchDBDef.MaxRetriesOnStartup, 10)
26-
testutil.AssertEquals(t, couchDBDef.RequestTimeout, time.Second*35)
21+
assert.Equal(t, expectedAddress, couchDBDef.URL)
22+
assert.Equal(t, "", couchDBDef.Username)
23+
assert.Equal(t, "", couchDBDef.Password)
24+
assert.Equal(t, 3, couchDBDef.MaxRetries)
25+
assert.Equal(t, 10, couchDBDef.MaxRetriesOnStartup)
26+
assert.Equal(t, time.Second*35, couchDBDef.RequestTimeout)
2727
}

0 commit comments

Comments
 (0)