Skip to content
This repository has been archived by the owner on Dec 5, 2019. It is now read-only.

Commit

Permalink
Pipeline:Rest - Add success callback to timeout test to ensure it isn…
Browse files Browse the repository at this point in the history
…'t called on timeout
  • Loading branch information
kborchers committed Feb 19, 2013
1 parent 7ca6df8 commit cd02eee
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/unit/pipeline/pipeline-rest.js
Expand Up @@ -837,6 +837,9 @@ asyncTest( "timeout", function() {
expect( 1 );

longPipe.read({
success: function( data, textStatus, jqXHR ) {
ok( true, "This should not happen and will cause the test to fail if it does" );
},
complete: function( jqXHR, textStatus ) {
equal( textStatus, "timeout", "Timeout Triggered Complete Callback" );
start();
Expand Down

0 comments on commit cd02eee

Please sign in to comment.