Fix test failure with changes to thread management.
authorCarl Hetherington <cth@carlh.net>
Sat, 7 Mar 2020 23:14:54 +0000 (00:14 +0100)
committerCarl Hetherington <cth@carlh.net>
Sat, 7 Mar 2020 23:14:54 +0000 (00:14 +0100)
test/job_test.cc

index d93b4a082743ec10a22a8b71b8680df77ec67325..cc1c7ba8941f70d0aba97d3bf9e32ae0bfc6e301 100644 (file)
@@ -40,6 +40,11 @@ public:
 
        }
 
 
        }
 
+       ~TestJob ()
+       {
+               stop_thread ();
+       }
+
        void set_finished_ok () {
                set_state (FINISHED_OK);
        }
        void set_finished_ok () {
                set_state (FINISHED_OK);
        }