Skip to content

Commit 0741784

Browse files
fix tests that expected SnapshotsService logger, now *Utils logger
1 parent c18549b commit 0741784

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

server/src/test/java/org/elasticsearch/snapshots/SnapshotResiliencyTests.java

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1713,10 +1713,10 @@ public void onFailure(Exception e) {
17131713
assertTrue("executed all runnable tasks but test steps are still incomplete", testListener.isDone());
17141714
safeAwait(testListener); // shouldn't throw
17151715
},
1716-
SnapshotsService.class,
1716+
SnapshotsServiceUtils.class,
17171717
new MockLog.SeenEventExpectation(
17181718
"INFO log",
1719-
SnapshotsService.class.getCanonicalName(),
1719+
SnapshotsServiceUtils.class.getCanonicalName(),
17201720
Level.INFO,
17211721
"*failed to create snapshot*the following indices have unassigned primary shards*"
17221722
)
@@ -1784,16 +1784,16 @@ public void onFailure(Exception e) {
17841784
assertTrue("executed all runnable tasks but test steps are still incomplete", testListener.isDone());
17851785
safeAwait(testListener); // shouldn't throw
17861786
},
1787-
SnapshotsService.class,
1787+
SnapshotsServiceUtils.class,
17881788
new MockLog.SeenEventExpectation(
17891789
"INFO log",
1790-
SnapshotsService.class.getCanonicalName(),
1790+
SnapshotsServiceUtils.class.getCanonicalName(),
17911791
Level.INFO,
17921792
Strings.format("*failed to create snapshot*%s", expectedMessage)
17931793
),
17941794
new MockLog.SeenEventExpectation(
17951795
"INFO log",
1796-
SnapshotsService.class.getCanonicalName(),
1796+
SnapshotsServiceUtils.class.getCanonicalName(),
17971797
Level.INFO,
17981798
Strings.format("*failed to clone snapshot*%s", expectedMessage)
17991799
)
@@ -1843,10 +1843,10 @@ public void onFailure(Exception e) {
18431843
assertTrue("executed all runnable tasks but test steps are still incomplete", testListener.isDone());
18441844
safeAwait(testListener); // shouldn't throw
18451845
},
1846-
SnapshotsService.class,
1846+
SnapshotsServiceUtils.class,
18471847
new MockLog.SeenEventExpectation(
18481848
"INFO log",
1849-
SnapshotsService.class.getCanonicalName(),
1849+
SnapshotsServiceUtils.class.getCanonicalName(),
18501850
Level.INFO,
18511851
Strings.format("failed to create snapshot: no such index [%s]", indexName)
18521852
)
@@ -1895,10 +1895,10 @@ public void onFailure(Exception e) {
18951895
assertTrue("executed all runnable tasks but test steps are still incomplete", testListener.isDone());
18961896
safeAwait(testListener); // shouldn't throw
18971897
},
1898-
SnapshotsService.class,
1898+
SnapshotsServiceUtils.class,
18991899
new MockLog.SeenEventExpectation(
19001900
"INFO log",
1901-
SnapshotsService.class.getCanonicalName(),
1901+
SnapshotsServiceUtils.class.getCanonicalName(),
19021902
Level.INFO,
19031903
Strings.format("*failed to create snapshot*other feature states were requested: [none, none]", "")
19041904
)

0 commit comments

Comments
 (0)