Skip to content

Commit b1ce61f

Browse files
s1ckFlorentinDknutwalker
committed
Improve exception message
Co-Authored-By: Florentin Dörre <[email protected]> Co-authored-by: Paul Horn <[email protected]>
1 parent 846aa0c commit b1ce61f

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

core/src/main/java/org/neo4j/gds/core/loading/CSRGraphStoreUtil.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public static CSRGraphStore createFromGraph(
6767

6868
if (!graph.hasRelationshipProperty()) {
6969
throw new IllegalArgumentException(formatWithLocale(
70-
"Relationship property name '%s' does not exist in the graph.",
70+
"Expected relationship property '%s', but graph has none.",
7171
property
7272
));
7373
}

core/src/test/java/org/neo4j/gds/core/loading/CSRGraphStoreUtilTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ void shouldValidateRelationshipPropertyKey() {
7878
1
7979
);
8080
})
81-
.hasMessage("Relationship property name 'prop1' does not exist in the graph.");
81+
.hasMessage("Expected relationship property 'prop1', but graph has none.");
8282
}
8383

8484
}

proc/catalog/src/test/java/org/neo4j/gds/beta/generator/GraphGenerateProcTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ void shouldGenerateGraphWithDefaults() {
164164

165165
@Test
166166
void shouldGenerateDefaultEmptySchemaWithoutProperties() {
167-
String query = "CALL gds.beta.graph.generate('g', 10000, 5, {relationshipDistribution: 'RANDOM'})";
167+
String query = "CALL gds.beta.graph.generate('g', 4, 2, {relationshipDistribution: 'RANDOM'})";
168168
runQuery(query);
169169

170170
var graph = GraphStoreCatalog.get(this.getUsername(), this.db.databaseId(), "g").graphStore();

0 commit comments

Comments
 (0)