Skip to content

Commit 4d6693a

Browse files
author
Rajat Kalsy
committed
Merge branch 'pt131002073'
2 parents 71514ca + b8b6499 commit 4d6693a

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

Assets/Scripts/Editor/CoroutineClassUnitTests.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ public void SetGetCoroutineParams<T>(string[] multiChannel, string url, CurrentR
121121

122122
CoroutineParams<T> cp = new CoroutineParams<T> (url, timeout, 0, crt, typeof(T), pubnubRequestState);
123123

124-
GameObject go = new GameObject ();
124+
GameObject go = new GameObject ("PubnubUnitTestCoroutine");
125125
CoroutineClass cc = go.AddComponent<CoroutineClass> ();
126126

127127
cc.SetCoroutineParams<T>(crt, cp);
@@ -263,7 +263,7 @@ public void TestCheckElapsedTimePHBTimeNotElapsedWWWNullComplete(){
263263
void CheckElapsedTime<T>(CurrentRequestType crt, float timer, WWW www, bool completeFlag){
264264

265265

266-
GameObject go = new GameObject ();
266+
GameObject go = new GameObject ("PubnubUnitTestCoroutine");
267267
CoroutineClass cc = go.AddComponent<CoroutineClass> ();
268268

269269
if(crt.Equals(CurrentRequestType.Subscribe)){
@@ -349,7 +349,7 @@ public void TestCheckIfRequestIsRunningTruePHB(){
349349
}
350350

351351
void CheckIfRequestIsRunning<T>(CurrentRequestType crt, bool completeFlag){
352-
GameObject go = new GameObject ();
352+
GameObject go = new GameObject ("PubnubUnitTestCoroutine");
353353
CoroutineClass cc = go.AddComponent<CoroutineClass> ();
354354
if(crt.Equals(CurrentRequestType.Subscribe)){
355355
cc.isSubscribeComplete = completeFlag;
@@ -388,7 +388,7 @@ public void TestStopTimeoutsPresenceHeartbeat(){
388388
}
389389

390390
void StopTimeouts(CurrentRequestType crt){
391-
GameObject go = new GameObject ();
391+
GameObject go = new GameObject ("PubnubUnitTestCoroutine");
392392
CoroutineClass cc = go.AddComponent<CoroutineClass> ();
393393
if(crt.Equals(CurrentRequestType.Subscribe)){
394394
cc.runSubscribeTimer = true;

Assets/Scripts/PubnubIntegrationTests/CommonIntegrationTests.cs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1937,7 +1937,7 @@ public void TestRun<T>(string url, int timeout, int pause, string[] channels, bo
19371937
resumeOnReconnect, 0, isTimeout, timetoken, typeof(T), "", userCallback,
19381938
errorCallback);
19391939

1940-
GameObject go = new GameObject ();
1940+
GameObject go = new GameObject ("PubnubIntegrationTestCoroutine");
19411941
CoroutineClass cc = go.AddComponent<CoroutineClass> ();
19421942

19431943
if(crt.Equals(CurrentRequestType.Subscribe)){
@@ -2028,7 +2028,7 @@ public void TestProcessResponse<T>(WWW www, string url, int timeout, int pause,
20282028
errorCallback);
20292029

20302030
CoroutineParams<T> cp = new CoroutineParams<T> (url, timeout, pause, crt, typeof(T), pubnubRequestState);
2031-
GameObject go = new GameObject ();
2031+
GameObject go = new GameObject ("PubnubIntegrationTestCoroutine");
20322032
CoroutineClass cc = go.AddComponent<CoroutineClass> ();
20332033

20342034
if(crt.Equals(CurrentRequestType.Subscribe)){
@@ -2156,7 +2156,7 @@ public void TestProcessResponseError<T>(WWW www, string url, int timeout, int pa
21562156

21572157
CoroutineParams<T> cp = new CoroutineParams<T> (url, timeout, pause, crt, typeof(T), pubnubRequestState);
21582158

2159-
GameObject go = new GameObject ();
2159+
GameObject go = new GameObject ("PubnubIntegrationTestCoroutine");
21602160
CoroutineClass cc = go.AddComponent<CoroutineClass> ();
21612161

21622162
if (!isTimeout) {
@@ -2285,7 +2285,7 @@ public void TestBounce<T>(string url, int timeout, int pause, string[] channels,
22852285
resumeOnReconnect, 0, isTimeout, timetoken, typeof(T), "", userCallback,
22862286
errorCallback);
22872287

2288-
GameObject go = new GameObject ();
2288+
GameObject go = new GameObject ("PubnubIntegrationTestCoroutine");
22892289
CoroutineClass cc = go.AddComponent<CoroutineClass> ();
22902290

22912291
if(crt.Equals(CurrentRequestType.Subscribe)){
@@ -2360,7 +2360,7 @@ public IEnumerator TestCoroutineRunSubscribeMultiple(string url, string url2, in
23602360
RequestState<string> pubnubRequestState = BuildRequests.BuildRequestState<string> (channelEntities, respType,
23612361
resumeOnReconnect, 0, isTimeout, timetoken, (asObject)?typeof(object):typeof(string), "", UserCallbackCommonExceptionHandler, ErrorCallbackCommonExceptionHandler);
23622362

2363-
GameObject go = new GameObject ();
2363+
GameObject go = new GameObject ("PubnubIntegrationTestCoroutine");
23642364
CoroutineClass cc = go.AddComponent<CoroutineClass> ();
23652365

23662366
//cc.SubCoroutineComplete += CcCoroutineComplete<string>;
@@ -2430,7 +2430,7 @@ public void TestSubscribeAbort<T>(string url, int timeout, int pause, string[] c
24302430
resumeOnReconnect, 0, isTimeout, timetoken, typeof(T), "", userCallback,
24312431
errorCallback);
24322432

2433-
GameObject go = new GameObject ();
2433+
GameObject go = new GameObject ("PubnubIntegrationTestCoroutine");
24342434
CoroutineClass cc = go.AddComponent<CoroutineClass> ();
24352435

24362436
cc.Run<T>(url, pubnubRequestState, timeout, pause);
@@ -2491,7 +2491,7 @@ public IEnumerator TestSubscribeMultiple<T>(string url, string url2, int timeout
24912491
resumeOnReconnect, 0, isTimeout, timetoken, typeof(T), "", userCallback,
24922492
errorCallback);
24932493

2494-
GameObject go = new GameObject ();
2494+
GameObject go = new GameObject ("PubnubIntegrationTestCoroutine");
24952495
CoroutineClass cc = go.AddComponent<CoroutineClass> ();
24962496

24972497
//check runSubscribeTimer

0 commit comments

Comments
 (0)