From 5c379dd21cc73e4da4c96d7c9b44ec38fa931db5 Mon Sep 17 00:00:00 2001 From: jaysunxiao Date: Mon, 16 May 2022 21:24:43 +0800 Subject: [PATCH] =?UTF-8?q?perf[protocol]:=20=E4=BD=BF=E7=94=A8=E6=A8=A1?= =?UTF-8?q?=E6=9D=BF=E7=94=9F=E6=88=90=E5=8D=8F=E8=AE=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- protocol/src/test/cpp/test/serialization_test.h | 2 +- protocol/src/test/cpp/test/speed_test.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/protocol/src/test/cpp/test/serialization_test.h b/protocol/src/test/cpp/test/serialization_test.h index 8546d53b..3dbedb57 100644 --- a/protocol/src/test/cpp/test/serialization_test.h +++ b/protocol/src/test/cpp/test/serialization_test.h @@ -75,7 +75,7 @@ namespace serialization_test { void complexObjectTest() { // 读取二进制文件 - ifstream file("../resources/ComplexObject.bytes", ios::out | ios::binary); + ifstream file("../../resources/ComplexObject.bytes", ios::out | ios::binary); unsigned char carray[10000]; int length = 0; while (file.read((char *) &carray[length], sizeof(unsigned char))) { diff --git a/protocol/src/test/cpp/test/speed_test.h b/protocol/src/test/cpp/test/speed_test.h index c1e77aab..26b69225 100644 --- a/protocol/src/test/cpp/test/speed_test.h +++ b/protocol/src/test/cpp/test/speed_test.h @@ -20,7 +20,7 @@ namespace speed_test { void parseObject() { // 读取二进制文件 - ifstream file("../resources/ComplexObject.bytes", ios::out | ios::binary); + ifstream file("../../resources/ComplexObject.bytes", ios::out | ios::binary); unsigned char carray[10000]; int length = 0; while (file.read((char *) &carray[length], sizeof(unsigned char))) {