protected void waitState(String state) {
		TraceObject proc = Objects.requireNonNull(tb.objAny("Processes[]", Lifespan.at(0)));
		for (int i = 0; i < 5; i++) {
			try {
				waitForPass(() -> {
					Long snap = tb.trace.getTimeManager().getMaxSnap();
					assertEquals(state, tb.objValue(proc, snap != null ? snap : 0, "_state"));
				});
				break;
			}
			catch (AssertionError e) {
				if (i == 4) {
					throw e;
				}
			}
		}
		waitTxDone();
	}
Some snapshot likely to exceed the latest
Ghidra/Test/DebuggerIntegrationTest/src/test.slow/java/agent/lldb/rmi/AbstractLldbTraceRmiTest.java