File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -239,14 +239,13 @@ public function testGettingPushStatus()
239239        // verify not pending 
240240        $ this assertFalse ($ pushStatusisPending ());
241241
242-         // verify 'running' 
242+         // verify 'running', or 'failed' on later versions of parse-server 
243+         // both are acceptable 
243244        $ this assertTrue (
244-             $ pushStatusisRunning (),
245-             'Push did not succeed '  
245+             $ pushStatusisRunning () ||  $ pushStatus -> hasFailed () ,
246+             'Push did not succeed/fail, was   '  . $ pushStatus -> getPushStatus () 
246247        );
247248
248- 
249- 
250249        // verify # sent & failed 
251250        $ this assertEquals (
252251            0 ,
@@ -264,8 +263,7 @@ public function testGettingPushStatus()
264263            'Hash not present ' 
265264        );
266265
267-         // verify we have neither failed or succeeded 
268-         $ this assertFalse ($ pushStatushasFailed ());
266+         // verify we have not succeeded 
269267        $ this assertFalse ($ pushStatushasSucceeded ());
270268    }
271269
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments