Skip to content

Commit 88b909b

Browse files
committed
Autocomplete unit tests: Replace unreliable setTimeout with gobal ajax event handler
1 parent af2296b commit 88b909b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/unit/autocomplete/autocomplete_options.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ function source_test(source, async) {
120120
}
121121
if (async) {
122122
stop();
123-
setTimeout(result, 100);
123+
$(document).one("ajaxStop", result);
124124
} else {
125125
result();
126126
}

0 commit comments

Comments
 (0)