Skip to content

Commit f8af569

Browse files
Add a warning
1 parent 0d59d68 commit f8af569

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

test/remote-httpserverconnection.cpp

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,24 @@ struct HttpServerConnectionFixture : TlsStreamFixture, ConfigurationCacheDirFixt
2121

2222
HttpServerConnectionFixture() : m_WaitGroup(new StoppableWaitGroup) {}
2323

24+
enum TestEnum
25+
{
26+
AValue
27+
};
28+
29+
enum OtherEnum
30+
{
31+
AlsoAValue
32+
};
33+
2434
static void CreateApiListener(const String& allowOrigin)
2535
{
2636
ScriptGlobal::Set("NodeName", "server");
2737
ApiListener::Ptr listener = new ApiListener;
2838
listener->OnConfigLoaded();
2939
listener->SetAccessControlAllowOrigin(new Array{allowOrigin});
40+
41+
unsigned int test = allowOrigin.IsEmpty() ? TestEnum::AValue : OtherEnum::AlsoAValue;
3042
}
3143

3244
static void CreateTestUsers()

0 commit comments

Comments
 (0)