 
 exports.getUserLocationId =
 	testValidData: (test) ->
-		migrateTables 'permission_kind', 'uniusers'
+		clearTables 'uniusers'
 		insert 'uniusers', id: 1, 'location': 3
 
 		insert 'uniusers', id: 2, 'location': 1



exports.isInFight = (test) ->
	migrateTables 'permission_kind', 'uniusers', 'creature_kind', 'battle_participants'
	insert 'uniusers', id: 2
	insert 'uniusers', id: 4
	insert 'battle_participants', kind: 'user', id: 4

		test.done()

	testWrongSessid: (test) ->
		clearTables 'uniusers'
		test.throws(
			-> game.getUserLocationId.sync(null, conn, -1)
			Error
