Skip to content

Race condition on ng test #293

Closed
Closed
@filipesilva

Description

@filipesilva

There might be a race condition when running ng test. On a newly generated project I got the following output when running ng test once, killing it, then running again:

(on the first run notice the karma watcher warnings before build is done, and that 0 tests run)

filipe.silva@DESKTOP-7ND6T3R MINGW64 /E/dev/ideablade/testing/testproj6 (master)
$ ng test
Building11 03 2016 11:17:08.275:WARN [watcher]: Pattern "E:/dev/ideablade/testing/testproj6/dist/**/*.js" does not match any file.
11 03 2016 11:17:08.278:WARN [watcher]: Pattern "E:/dev/ideablade/testing/testproj6/dist/**/*.html" does not match any file.
11 03 2016 11:17:08.279:WARN [watcher]: Pattern "E:/dev/ideablade/testing/testproj6/dist/**/*.css" does not match any file.
11 03 2016 11:17:08.280:WARN [watcher]: Pattern "E:/dev/ideablade/testing/testproj6/dist/**/*.ts" does not match any file.
11 03 2016 11:17:08.281:WARN [watcher]: Pattern "E:/dev/ideablade/testing/testproj6/dist/**/*.js.map" does not match any file.
Building...

Build successful - 2595ms.

Slowest Trees                                 | Total
----------------------------------------------+---------------------
DiffingTSCompiler                             | 2359ms

Slowest Trees (cumulative)                    | Total (avg)
----------------------------------------------+---------------------
DiffingTSCompiler (1)                         | 2359ms

11 03 2016 11:17:11.229:WARN [karma]: No captured browser, open http://localhost:9876/
11 03 2016 11:17:11.240:INFO [karma]: Karma v0.13.22 server started at http://localhost:9876/
11 03 2016 11:17:11.259:INFO [launcher]: Starting browser Chrome
11 03 2016 11:17:18.699:INFO [Chrome 48.0.2564 (Windows 10 0.0.0)]: Connected on socket /#_70pkh4fF_89rpxsAAAA with id 37874958
Chrome 48.0.2564 (Windows 10 0.0.0) WARN: 'DEPRECATION WARNING: 'enqueueTask' is no longer supported and will be removed in next major release. Use addTask/addRepeatingTask/addMicroTask'

Chrome 48.0.2564 (Windows 10 0.0.0): Executed 0 of 0 ERROR (0.004 secs / 0 secs)


filipe.silva@DESKTOP-7ND6T3R MINGW64 /E/dev/ideablade/testing/testproj6 (master)
$ ng test
Building11 03 2016 11:17:34.176:WARN [watcher]: Pattern "E:/dev/ideablade/testing/testproj6/dist/**/*.css" does not match any file.
Building.11 03 2016 11:17:36.771:WARN [karma]: No captured browser, open http://localhost:9876/
11 03 2016 11:17:36.791:INFO [karma]: Karma v0.13.22 server started at http://localhost:9876/
11 03 2016 11:17:36.798:INFO [launcher]: Starting browser Chrome
Building...

Build successful - 2505ms.

Slowest Trees                                 | Total
----------------------------------------------+---------------------
DiffingTSCompiler                             | 2287ms

Slowest Trees (cumulative)                    | Total (avg)
----------------------------------------------+---------------------
DiffingTSCompiler (1)                         | 2287ms

11 03 2016 11:17:44.364:INFO [Chrome 48.0.2564 (Windows 10 0.0.0)]: Connected on socket /#a-Kii2MGcnRXTJ97AAAA with id 51965993
Chrome 48.0.2564 (Windows 10 0.0.0) WARN: 'DEPRECATION WARNING: 'enqueueTask' is no longer supported and will be removed in next major release. Use addTask/addRepeatingTask/addMicroTask'

Chrome 48.0.2564 (Windows 10 0.0.0): Executed 2 of 2 SUCCESS (0.019 secs / 0.013 secs)

/cc @Brocco

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions