File tree 8 files changed +26
-16
lines changed
8 files changed +26
-16
lines changed Original file line number Diff line number Diff line change 8
8
"reflect"
9
9
"sync"
10
10
11
- "github.com/go-ole /go-ole"
12
- "github.com/go-ole /go-ole/oleutil"
11
+ "github.com/bi-zone /go-ole"
12
+ "github.com/bi-zone /go-ole/oleutil"
13
13
"github.com/hashicorp/go-multierror"
14
14
"github.com/scjalliance/comshim"
15
15
)
Original file line number Diff line number Diff line change @@ -10,8 +10,8 @@ import (
10
10
"strings"
11
11
"time"
12
12
13
- "github.com/go-ole /go-ole"
14
- "github.com/go-ole /go-ole/oleutil"
13
+ "github.com/bi-zone /go-ole"
14
+ "github.com/bi-zone /go-ole/oleutil"
15
15
"github.com/hashicorp/go-multierror"
16
16
)
17
17
Original file line number Diff line number Diff line change 9
9
"testing"
10
10
"time"
11
11
12
- "github.com/go-ole /go-ole"
12
+ "github.com/bi-zone /go-ole"
13
13
)
14
14
15
15
var (
Original file line number Diff line number Diff line change 1
1
module github.com/bi-zone/wmi
2
2
3
3
require (
4
- github.com/go-ole/go-ole v1.2.2
4
+ github.com/bi-zone/go-ole v1.2.5
5
+ github.com/go-ole/go-ole v1.2.4 // indirect
5
6
github.com/hashicorp/go-multierror v1.0.0
6
7
github.com/scjalliance/comshim v0.0.0-20190308082608-cf06d2532c4e
8
+ golang.org/x/sys v0.0.0-20200806060901-a37d78b92225
7
9
)
8
-
9
- replace github.com/go-ole/go-ole => github.com/bi-zone/go-ole v1.2.5-0.20200615091707-5a6c01d333ed
Original file line number Diff line number Diff line change 1
- github.com/bi-zone/go-ole v1.2.5-0.20200615091707-5a6c01d333ed h1:FR6GKPbTPKkA0FrTw0e26gU3AM5Ov75FgEUIwaggGxo =
2
- github.com/bi-zone/go-ole v1.2.5-0.20200615091707-5a6c01d333ed /go.mod h1:pprOEPIfldk/42T2oK7lQ4v4JSDwmV0As9GaiUsvbm0 =
1
+ github.com/bi-zone/go-ole v1.2.5 h1:/4G2KrTbq1e3FsMkd40quzwIrLb4QdxZJnUUlG7UjcM =
2
+ github.com/bi-zone/go-ole v1.2.5 /go.mod h1:BxzT498d9QAq10L6G/pTMscpDzqnpKN6DUBbmFKwyQY =
3
+ github.com/go-ole/go-ole v1.2.4 h1:nNBDSCOigTSiarFpYE9J/KtEA1IOW4CNeqT9TQDqCxI =
4
+ github.com/go-ole/go-ole v1.2.4 /go.mod h1:XCwSNxSkXRo4vlyPy93sltvi/qJq0jqQhjqQNIwKuxM =
5
+ github.com/gonuts/commander v0.1.0 /go.mod h1:qkb5mSlcWodYgo7vs8ulLnXhfinhZsZcm6+H/z1JjgY =
6
+ github.com/gonuts/flag v0.1.0 /go.mod h1:ZTmTGtrSPejTo/SRNhCqwLTmiAgyBdCkLYhHrAoBdz4 =
3
7
github.com/hashicorp/errwrap v1.0.0 h1:hLrqtEDnRye3+sgx6z4qVLNuviH3MR5aQ0ykNJa/UYA =
4
8
github.com/hashicorp/errwrap v1.0.0 /go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4 =
5
9
github.com/hashicorp/go-multierror v1.0.0 h1:iVjPR7a6H0tWELX5NxNe7bYopibicUzc7uPribsnS6o =
@@ -8,3 +12,5 @@ github.com/scjalliance/comshim v0.0.0-20190308082608-cf06d2532c4e h1:+/AzLkOdIXE
8
12
github.com/scjalliance/comshim v0.0.0-20190308082608-cf06d2532c4e /go.mod h1:9Tc1SKnfACJb9N7cw2eyuI6xzy845G7uZONBsi5uPEA =
9
13
golang.org/x/sys v0.0.0-20190916202348-b4ddaad3f8a3 h1:7TYNF4UdlohbFwpNH04CoPMp1cHUZgO1Ebq5r2hIjfo =
10
14
golang.org/x/sys v0.0.0-20190916202348-b4ddaad3f8a3 /go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs =
15
+ golang.org/x/sys v0.0.0-20200806060901-a37d78b92225 h1:a5kp7Ohh+lqGCGHUBQdPwGHTJXKNhVVWp34F+ncDC9M =
16
+ golang.org/x/sys v0.0.0-20200806060901-a37d78b92225 /go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs =
Original file line number Diff line number Diff line change @@ -10,8 +10,8 @@ import (
10
10
"testing"
11
11
"time"
12
12
13
- "github.com/go-ole /go-ole"
14
- "github.com/go-ole /go-ole/oleutil"
13
+ "github.com/bi-zone /go-ole"
14
+ "github.com/bi-zone /go-ole/oleutil"
15
15
"github.com/scjalliance/comshim"
16
16
)
17
17
@@ -151,6 +151,10 @@ func TestMemory_WMIConcurrent(t *testing.T) {
151
151
//
152
152
// Run using: `TEST_MEM=1 go test -run TestMemory_OLEErrors -timeout 60m`
153
153
func TestMemory_OLEErrors (t * testing.T ) {
154
+ if os .Getenv ("TEST_MEM" ) == "" {
155
+ t .Skip ("Skipping TestMemory_OLEErrors; $TEST_MEM is not set" )
156
+ }
157
+
154
158
// Subscribe to some rare event. E.g. removal of the local drive.
155
159
const query = "SELECT * FROM Win32_VolumeChangeEvent WHERE EventType=3"
156
160
Original file line number Diff line number Diff line change 9
9
"sync"
10
10
"time"
11
11
12
- "github.com/go-ole /go-ole"
13
- "github.com/go-ole /go-ole/oleutil"
12
+ "github.com/bi-zone /go-ole"
13
+ "github.com/bi-zone /go-ole/oleutil"
14
14
"github.com/hashicorp/go-multierror"
15
15
"github.com/scjalliance/comshim"
16
16
)
Original file line number Diff line number Diff line change 6
6
"fmt"
7
7
"sync"
8
8
9
- "github.com/go-ole /go-ole"
10
- "github.com/go-ole /go-ole/oleutil"
9
+ "github.com/bi-zone /go-ole"
10
+ "github.com/bi-zone /go-ole/oleutil"
11
11
"github.com/hashicorp/go-multierror"
12
12
"github.com/scjalliance/comshim"
13
13
)
You can’t perform that action at this time.
0 commit comments