From 9fc57def60c0ab4479868188b8377f435c4a7eb0 Mon Sep 17 00:00:00 2001
From: "Liu, Hanyu" <tensai0lhy@gmail.com>
Date: Mon, 7 Jun 2021 23:12:06 +0800
Subject: [PATCH] adjust testcase order

---
 test/allinone.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/test/allinone.cpp b/test/allinone.cpp
index 0917b3a..3f111ea 100644
--- a/test/allinone.cpp
+++ b/test/allinone.cpp
@@ -153,6 +153,7 @@ TEST_ITEM_START
         TEST_ITEM("Test for string characteristics", testStringEqual)
         TEST_ITEM("Read&Write file test", testReadWriteFile)
         TEST_ITEM("GetFileSize, should work well", testGetFileSize)
+        TEST_ITEM("Test get instances with predicate(testRandomByWeightSelector)", testRandomByWeightSelector)
         TEST_ITEM("Check whether file exists or not", testFileExists)
         TEST_ITEM("Create&Remove file", testCreateAndRemove)
         TEST_ITEM("Create a directory with subdirectories, and clean it", testCleanDirectory)
@@ -171,6 +172,7 @@ TEST_ITEM_START
         TEST_ITEM("Smoke test for ThreadPool", testThreadPoolSmoke)
         TEST_ITEM("Test basic function of NacosNamingService's registerService", testNamingServiceRegister)
         TEST_ITEM("Test serialization/deserialization of Business Object", testString2ServiceInfo)
+        TEST_ITEM("Test get instances with predicate(Randomly)", testInstanceSelectors)
         TEST_ITEM("Test serialization/deserialization of malformed Business Object", testMalformedJson2ServiceInfo)
         TEST_ITEM("Test serialization/deserialization of malformed Business Object (Double)", testMalformedDouble2ServiceInfo)
         TEST_ITEM("Test serialization/deserialization of malformed Business Object (no cacheMillis)", testLackcacheMillisServiceInfo)
@@ -185,8 +187,6 @@ TEST_ITEM_START
         TEST_ITEM("Register many services and get one", testGetAllInstances)
         TEST_ITEM("Subscribe & unsubscribe services", testListenService)
         TEST_ITEM("Test get all service names", testGetServiceNames)
-        TEST_ITEM("Test get instances with predicate(Randomly)", testInstanceSelectors)
-        TEST_ITEM("Test get instances with predicate(testRandomByWeightSelector)", testRandomByWeightSelector)
         TEST_ITEM("Smoking test of ThreadLocal", testThreadLocal)
         TEST_ITEM("Smoking test of ThreadLocal(pointer)", testThreadLocalPtr)
         TEST_ITEM("Smoking test of ThreadLocal(pointer with initializer)", testThreadLocalPtrWithInitializer)