1// Copyright (C) MongoDB, Inc. 2017-present. 2// 3// Licensed under the Apache License, Version 2.0 (the "License"); you may 4// not use this file except in compliance with the License. You may obtain 5// a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 6 7package integration 8 9import ( 10 "log" 11 "os" 12 "testing" 13 14 "go.mongodb.org/mongo-driver/mongo/integration/mtest" 15) 16 17func TestMain(m *testing.M) { 18 if err := mtest.Setup(); err != nil { 19 log.Fatal(err) 20 } 21 defer os.Exit(m.Run()) 22 if err := mtest.Teardown(); err != nil { 23 log.Fatal(err) 24 } 25} 26