diff --git a/client/src/test/java/com/vesoft/nebula/client/graph/data/TestDataFromServer.java b/client/src/test/java/com/vesoft/nebula/client/graph/data/TestDataFromServer.java index 1320e5b9d..afb873890 100644 --- a/client/src/test/java/com/vesoft/nebula/client/graph/data/TestDataFromServer.java +++ b/client/src/test/java/com/vesoft/nebula/client/graph/data/TestDataFromServer.java @@ -125,7 +125,7 @@ public void setUp() throws Exception { resp = session.execute(insertShape); Assert.assertTrue(resp.getErrorMessage(), resp.isSucceeded()); - String insertDuration = "INSERT VERTEX tag_duration(prop) VALUES 'duration':" + String insertDuration = "INSERT VERTEX tag_duration(col) VALUES 'duration':" + "(duration({months:1, seconds:100, microseconds:20}));"; resp = session.execute(insertDuration); Assert.assertTrue(resp.getErrorMessage(), resp.isSucceeded()); @@ -289,11 +289,11 @@ public void testAllSchemaType() { node = result.rowValues(0).get(0).asNode(); Assert.assertEquals("duration", node.getId().asString()); Assert.assertEquals(Arrays.asList("tag_duration"), node.tagNames()); - properties = node.properties("prop"); + properties = node.properties("col"); DurationWrapper durationWrapper = new DurationWrapper(new Duration(1, 100, 20)); - Assert.assertEquals(durationWrapper, properties.get("prop").asDuration()); + Assert.assertEquals(durationWrapper, properties.get("col").asDuration()); Assert.assertEquals(durationWrapper.toString(), - properties.get("prop").asDuration().toString()); + properties.get("col").asDuration().toString()); } catch (IOErrorException | UnsupportedEncodingException e) { e.printStackTrace();