Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicole00 committed Oct 19, 2021
1 parent 7758b91 commit 50ef23e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class GraphProviderTest extends AnyFunSuite with BeforeAndAfterAll {
}

test("submit") {
val result = graphProvider.submit("insert vertex person(col1) values 100:(\"test\")")
val result = graphProvider.submit("fetch prop on person 1")
assert(result.isSucceeded)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ class ReadSuite extends AnyFunSuite with BeforeAndAfterAll {
val nebulaReadEdgeConfig: ReadNebulaConfig = ReadNebulaConfig
.builder()
.withSpace("test_int")
.withLabel("person")
.withLabel("friend")
.withNoColumn(false)
.withReturnCols(List("col1"))
.withLimit(10)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class WriteDeleteSuite extends AnyFunSuite with BeforeAndAfterAll {
val resultSet: ResultSet =
graphProvider.submit("use test_write_string;match (v:person_connector) return v;")
assert(resultSet.getColumnNames.size() == 0)
assert(resultSet.getRows.size() == 0)
assert(resultSet.isEmpty)
}

test("write edge into test_write_string space with delete mode") {
Expand All @@ -44,6 +44,6 @@ class WriteDeleteSuite extends AnyFunSuite with BeforeAndAfterAll {
val resultSet: ResultSet =
graphProvider.submit("use test_write_string;fetch prop on friend_connector 1->2@10")
assert(resultSet.getColumnNames.size() == 0)
assert(resultSet.getRows.size() == 0)
assert(resultSet.isEmpty)
}
}

0 comments on commit 50ef23e

Please sign in to comment.