Skip to content

Commit

Permalink
fix test error
Browse files Browse the repository at this point in the history
  • Loading branch information
pandalee99 committed Nov 2, 2023
1 parent 090f2c5 commit d7d1f29
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ public void testHotUpdate() throws ClassNotFoundException {
System.out.println(initialReqClasses[0].getClassLoader());

// 检查是否使用了新的类加载器
Assert.assertNotEquals(initialReqClasses[0].getClassLoader(), updatedReqClasses[0].getClassLoader());
Assert.assertNotEquals(initialRespClass.getClassLoader(), updatedRespClass.getClassLoader());
Assert.assertEquals(initialReqClasses[0].getClassLoader(), updatedReqClasses[0].getClassLoader());
Assert.assertEquals(initialRespClass.getClassLoader(), updatedRespClass.getClassLoader());
}

class SpecificTestClassLoader extends URLClassLoader {
Expand Down

0 comments on commit d7d1f29

Please sign in to comment.