Skip to content

Instantly share code, notes, and snippets.

@Lutando
Created August 7, 2019 08:03
Show Gist options
  • Save Lutando/6c68a93faace4a0403f468358193ee41 to your computer and use it in GitHub Desktop.
Save Lutando/6c68a93faace4a0403f468358193ee41 to your computer and use it in GitHub Desktop.
test problem logs
Akkatecture.Tests.UnitTests.Jobs.ScheduledJobsTests.SchedulingJob_For5minutes_DispatchesJobMessage
Failed: Expected no messages during 00:00:01, instead we received <Akkatecture.TestHelpers.Jobs.TestJobDone> from [akka://jobs-tests/user/$a/test-job-runner-supervisor/test-job-runner#1730104005] after 00:00:00.0000030
Expected: True
Actual: False
at Akka.TestKit.TestKitBase.InternalExpectNoMsg(TimeSpan duration)
at Akka.TestKit.TestKitBase.ExpectNoMsg(TimeSpan duration)
at Akkatecture.Tests.UnitTests.Jobs.ScheduledJobsTests.SchedulingJob_For5minutes_DispatchesJobMessage() in /Users/lutandongqakaza/Workspace/Akkatecture/Akkatecture/test/Akkatecture.Tests/UnitTests/Jobs/ScheduledJobsTests.cs:line 89
[INFO][08/07/2019 08:00:37][Thread 0030][[akka://jobs-tests/user/$a#1293214282]] JobManager for Job of Name=test-job is forwarding job command of Type=TestJob to JobScheduler at ActorPath=akka://jobs-tests/user/$a/test-job-scheduler-supervisor
[INFO][08/07/2019 08:00:37][Thread 0029][[akka://jobs-tests/user/$a/test-job-scheduler-supervisor/test-job-scheduler#577972873]] Added 1 versioned types to 'JobDefinitionService' from these assemblies: Akkatecture.TestHelpers
[INFO][08/07/2019 08:00:38][Thread 0025][[akka://jobs-tests/user/$a/test-job-scheduler-supervisor/test-job-scheduler#577972873]] JobScheduler for Job of Name=test-job, Definition=TestJob v1 (Akkatecture.TestHelpers - TestJob), and Id=testjob-619417c9-69a9-495d-a49e-8fc4148ffabb; has been successfully scheduled to run at TriggerDate=08/08/2019 08:00:37.
[INFO][08/07/2019 08:00:38][Thread 0015][[akka://jobs-tests/user/$a/test-job-scheduler-supervisor/test-job-scheduler#577972873]] JobScheduler for Job of Name=test-job; sending job of Definition=TestJob v1 (Akkatecture.TestHelpers - TestJob) to JobRunner.
[INFO][08/07/2019 08:00:38][Thread 0015][[akka://jobs-tests/user/$a#1293214282]] JobManager for Job of Name=test-job is forwarding job command of Type=TestJob to JobRunner at ActorPath=akka://jobs-tests/user/$a/test-job-runner-supervisor
[INFO][08/07/2019 08:00:38][Thread 0015][[akka://jobs-tests/user/$a/test-job-runner-supervisor/test-job-runner#1730104005]] JobRunner has processed TestJob.
[INFO][08/07/2019 08:00:38][Thread 0015][[akka://jobs-tests/user/$a/test-job-scheduler-supervisor/test-job-scheduler#577972873]] JobScheduler for Job of Name=test-job; sending job of Definition=TestJob v1 (Akkatecture.TestHelpers - TestJob) to JobRunner.
[INFO][08/07/2019 08:00:38][Thread 0015][[akka://jobs-tests/user/$a#1293214282]] JobManager for Job of Name=test-job is forwarding job command of Type=TestJob to JobRunner at ActorPath=akka://jobs-tests/user/$a/test-job-runner-supervisor
[DEBUG][08/07/2019 08:00:38][Thread 0010][LocalActorRefProvider(akka://jobs-tests)] Resolve of path sequence [/deadLetters] failed
[DEBUG][08/07/2019 08:00:38][Thread 0010][LocalActorRefProvider(akka://jobs-tests)] Resolve of path sequence [/deadLetters] failed
[INFO][08/07/2019 08:00:38][Thread 0015][[akka://jobs-tests/user/$a/test-job-runner-supervisor/test-job-runner#1730104005]] JobRunner has processed TestJob.
[DEBUG][08/07/2019 08:00:38][Thread 0032][LocalActorRefProvider(akka://jobs-tests)] Resolve of path sequence [/deadLetters] failed
[DEBUG][08/07/2019 08:00:38][Thread 0032][LocalActorRefProvider(akka://jobs-tests)] Resolve of path sequence [/deadLetters] failed
[DEBUG][08/07/2019 08:00:38][Thread 0015][ActorSystem(jobs-tests)] System shutdown initiated
[INFO][08/07/2019 08:00:38][Thread 0033][[akka://jobs-tests/user/$a/test-job-scheduler-supervisor/test-job-scheduler#577972873]] JobScheduler for Job Name=test-job has stopped.
[DEBUG][08/07/2019 08:00:38][Thread 0033][EventStream] Shutting down: StandardOutLogger started
[DEBUG][08/07/2019 08:00:38][Thread 0033][EventStream] All default loggers stopped
@Lutando
Copy link
Author

Lutando commented Aug 7, 2019

The problem lies JobRunner has processed TestJob. twice which should not happen

Must be a consequence of using the TestScheduler

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment