Skip to content

Commit 7173051

Browse files
author
Zoran Cvetkov
committed
fix test
1 parent 9762cbf commit 7173051

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

graph/src/data/store/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -914,9 +914,9 @@ impl Entity {
914914
/// i64 it panics.
915915
pub fn vid(&self) -> i64 {
916916
self.get(VID_FIELD)
917-
.expect("the vid is set")
917+
.expect("the vid must be set")
918918
.as_int8()
919-
.expect("the vid is set to a valid value")
919+
.expect("the vid must be set to a valid value")
920920
}
921921

922922
/// Sets the VID of the entity. The previous one is returned.

store/test-store/tests/postgres/relational.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -778,7 +778,8 @@ fn enum_arrays() {
778778
let spectrum = entity! { THINGS_SCHEMA =>
779779
id: "rainbow",
780780
main: "yellow",
781-
all: vec!["yellow", "red", "BLUE"]
781+
all: vec!["yellow", "red", "BLUE"],
782+
vid: 0i64
782783
};
783784

784785
insert_entity(

0 commit comments

Comments
 (0)