You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
318 B

  1. package gamesrv
  2. /*
  3. func TestCreatePlanet(t *testing.T) {
  4. db, err := database.New("127.0.0.1:27017", "gogametests")
  5. assert.Nil(t, err)
  6. srv := New(db)
  7. solarSystem, planet, err := srv.CreatePlanet(bson.ObjectIdHex("5d029a6ff18ba24f406168fe"))
  8. assert.Nil(t, err)
  9. fmt.Println(solarSystem)
  10. fmt.Println(planet)
  11. }
  12. */