Skip to content

Commit 05755c5

Browse files
fix: EarlyStopping test failing
1 parent 0701e3a commit 05755c5

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

tests/test-callbacks.cpp

+1-6
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,7 @@ using namespace NeuralNet;
1111
TEST_CASE(
1212
"EarlyStopping callback throws exception when the metric is not found",
1313
"[callback]") {
14-
std::shared_ptr<Callback> earlyStopping =
15-
std::make_shared<EarlyStopping>("NOT_A_METRIC", 0.1);
16-
17-
Network network;
18-
19-
REQUIRE_THROWS(Callback::callMethod(earlyStopping, "onEpochEnd", network));
14+
REQUIRE_THROWS(std::make_shared<EarlyStopping>("NOT_A_METRIC", 0.1));
2015
}
2116

2217
TEST_CASE(

0 commit comments

Comments
 (0)