Make it clearer in tests where numbers come from

pull/2202/head
Philip O'Toole 2015-04-10 16:30:49 -07:00
parent 5882f0b303
commit 5890025803
1 changed files with 6 additions and 6 deletions

View File

@ -1358,8 +1358,8 @@ func TestSingleServer(t *testing.T) {
nodes := createCombinedNodeCluster(t, testName, dir, 1, nil)
defer nodes.Close()
runTestsData(t, testName, nodes, "mydb", "myrp", 1)
runTest_rawDataReturnsInOrder(t, testName, nodes, "mydb", "myrp", 1)
runTestsData(t, testName, nodes, "mydb", "myrp", len(nodes))
runTest_rawDataReturnsInOrder(t, testName, nodes, "mydb", "myrp", len(nodes))
}
func Test3NodeServer(t *testing.T) {
@ -1376,8 +1376,8 @@ func Test3NodeServer(t *testing.T) {
nodes := createCombinedNodeCluster(t, testName, dir, 3, nil)
defer nodes.Close()
runTestsData(t, testName, nodes, "mydb", "myrp", 3)
runTest_rawDataReturnsInOrder(t, testName, nodes, "mydb", "myrp", 3)
runTestsData(t, testName, nodes, "mydb", "myrp", len(nodes))
runTest_rawDataReturnsInOrder(t, testName, nodes, "mydb", "myrp", len(nodes))
}
@ -1395,8 +1395,8 @@ func Test3NodeClusterPartiallyReplicated(t *testing.T) {
nodes := createCombinedNodeCluster(t, testName, dir, 3, nil)
defer nodes.Close()
runTestsData(t, testName, nodes, "mydb", "myrp", 2)
runTest_rawDataReturnsInOrder(t, testName, nodes, "mydb", "myrp", 2)
runTestsData(t, testName, nodes, "mydb", "myrp", len(nodes)-1)
runTest_rawDataReturnsInOrder(t, testName, nodes, "mydb", "myrp", len(nodes)-1)
}
func TestClientLibrary(t *testing.T) {