File: mgo_windows.go

package info (click to toggle)
golang-github-juju-testing 0.0~git20170608.2fe0e88-3
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 464 kB
  • sloc: makefile: 6
file content (18 lines) | stat: -rw-r--r-- 665 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Copyright 2014 Canonical Ltd.
// Copyright 2014 Cloudbase Solutions SRL
// Licensed under the LGPLv3, see LICENCE file for details.

// +build windows

package testing

import "os"

// DestroyWithLog causes mongod to exit, cleans up its data directory,
// and captures the last N lines of mongod's log output.
// We cannot yet send an os.Interrupt on Windows
// For now this function is equivalent to Destroy
// https://code.google.com/p/go/source/browse/src/pkg/os/doc.go?spec=svne165495e81bfe6fbdd44ef99e9266bb7d09dae67&name=e165495e81bf&r=e165495e81bfe6fbdd44ef99e9266bb7d09dae67#49
func (inst *MgoInstance) DestroyWithLog() {
	inst.killAndCleanup(os.Kill)
}