Revert "Fix test case."
This reverts commit 1bbfcb4eed9a80fa2c460c4ddd30b3e04b399903.
diff --git a/apigee_sync_test.go b/apigee_sync_test.go
index 5758bf0..3d897d6 100644
--- a/apigee_sync_test.go
+++ b/apigee_sync_test.go
@@ -174,7 +174,6 @@
err := db.Ping()
Expect(err).NotTo(HaveOccurred())
-
numApidClusters, err := db.Query("select distinct count(*) from edgex_apid_cluster;")
if err != nil {
Fail("Failed to get correct DB")
@@ -182,13 +181,11 @@
Expect(true).To(Equal(numApidClusters.Next()))
numApidClusters.Scan(&rowCount)
Expect(1).To(Equal(rowCount))
- numApidClusters.Close()
-
apidClusters, _ := db.Query("select id from edgex_apid_cluster;")
apidClusters.Next()
apidClusters.Scan(&id)
Expect(id).To(Equal(expectedClusterId))
- apidClusters.Close()
+
numDataScopes, _ := db.Query("select distinct count(*) from edgex_data_scope;")
Expect(true).To(Equal(numDataScopes.Next()))
numDataScopes.Scan(&rowCount)