Skip to content

[BUG] SofaRpcFallbackRegistryTest has order dependent tests #3281

Closed
@SaaiVenkat

Description

Issue Description

Type: bug report

Describe what happened

Describe what you expected to happen

  • The unit tests in com.alibaba.csp.sentinel.adapter.sofa.rpc.fallback.SofaRpcFallbackRegistryTest should pass when run in any order

How to reproduce it (as minimally and precisely as possible)

  • In com.alibaba.csp.sentinel.adapter.sofa.rpc.fallback.SofaRpcFallbackRegistryTest, run the following unit tests in order
    • testCustomFallback()
    • testDefaultFallback()
  • Running the tests in the above manner will produce java.lang.AssertionError
java.lang.AssertionError
	at org.junit.Assert.fail(Assert.java:86)
	at org.junit.Assert.assertTrue(Assert.java:41)
	at org.junit.Assert.assertTrue(Assert.java:52)
	at com.alibaba.csp.sentinel.adapter.sofa.rpc.fallback.SofaRpcFallbackRegistryTest.testDefaultfallback(SofaRpcFallbackRegistryTest.java:42)

Tell us your environment

  • Sentinel: 1.8.6
  • OS: Mac OS X 14.0 aarch64
  • Java: 17.0.9 or 1.8.0_381

Anything else we need to know?

Metadata

Assignees

No one assigned

    Labels

    area/testIssue or PR related to test cases

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions