From d9efb6e3095521d29c3aabb17cded42b85d16422 Mon Sep 17 00:00:00 2001 From: Don Hardman Date: Tue, 10 Dec 2024 10:54:02 +0700 Subject: [PATCH] Fix another test --- test/Plugin/Insert/InsertQuery/InsertQueryHandlerTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/Plugin/Insert/InsertQuery/InsertQueryHandlerTest.php b/test/Plugin/Insert/InsertQuery/InsertQueryHandlerTest.php index c93f4233..0bfe0e4d 100644 --- a/test/Plugin/Insert/InsertQuery/InsertQueryHandlerTest.php +++ b/test/Plugin/Insert/InsertQuery/InsertQueryHandlerTest.php @@ -75,7 +75,7 @@ function () use ($handler, $resp) { $this->assertEquals(true, $task->isSucceed()); /** @var Struct */ $result = $task->getResult()->getStruct(); - $this->assertEquals($resp, $result->toJson()); + $this->assertEquals($resp, json_encode($result)); } ); \Swoole\Event::wait();