From 204ae594a2c5db6360c21594b6f864a76212cc63 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 16 Jan 2021 15:02:06 +0100 Subject: [PATCH] Check that we never get events about switching to State_Idle This state can never be returned to, once the state becomes active. --- tests/net/webrequest.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/net/webrequest.cpp b/tests/net/webrequest.cpp index 8e9db16321..d29efaada6 100644 --- a/tests/net/webrequest.cpp +++ b/tests/net/webrequest.cpp @@ -82,6 +82,9 @@ public: break; case wxWebRequest::State_Idle: + FAIL("should never get events with State_Idle"); + break; + case wxWebRequest::State_Active: break; }