title: How to run golang tests sequentially?
body: <p>When I run <code>go test</code>, my output:</p>
  
  <pre><code>--- FAIL: TestGETSearchSuccess (0.00s)
          Location:       drivers_api_test.go:283
          Error:          Not equal: 200 (expected)
                                  != 204 (actual)
  
  --- FAIL: TestGETCOSearchSuccess (0.00s)
          Location:       drivers_api_test.go:391
          Error:          Not equal: 200 (expected)
                                  != 204 (actual)
  </code></pre>
  
  <p>But after I run <code>go test</code> again, all my tests pass.</p>
  
  <p>Tests fail only when I reset my mysql database, and then run <code>go test</code> for the first time. </p>
  
  <p>For every <code>GET</code> request, I do a <code>POST</code> request before to ensure that there is data created in the DB. </p>
  
  <p>Could anyone help me with how to make sure that tests are run sequentially? That is the <code>POST</code> requests are run before the <code>GET</code> requests?</p>