Skip to content

Commit b0fd431

Browse files
committed
WIP
1 parent 86dfc35 commit b0fd431

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

aitelemetry/telemetrywrapper_test.go

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ func handleGetCloud(w http.ResponseWriter, req *http.Request) {
8787
w.Write([]byte(getCloudResponse))
8888
}
8989

90-
func initTelemetry(t *testing.T) (TelemetryHandle, TelemetryHandle) {
90+
func initTelemetry() (TelemetryHandle, TelemetryHandle) {
9191
th1, err1 := NewAITelemetry(httpURL, "00ca2a73-c8d6-4929-a0c2-cf84545ec225", aiConfig)
9292
if err1 != nil {
9393
fmt.Printf("Error initializing AI telemetry: %v", err1)
@@ -118,7 +118,7 @@ func TestEmptyAIKey(t *testing.T) {
118118
func TestNewAITelemetry(t *testing.T) {
119119
var err error
120120

121-
th1, th2 := initTelemetry(t)
121+
th1, th2 := initTelemetry()
122122
if th1 == nil {
123123
t.Errorf("Error initializing AI telemetry: %v", err)
124124
}
@@ -129,7 +129,7 @@ func TestNewAITelemetry(t *testing.T) {
129129
}
130130

131131
func TestTrackMetric(t *testing.T) {
132-
th1, th2 := initTelemetry(t)
132+
th1, th2 := initTelemetry()
133133

134134
metric := Metric{
135135
Name: "test",
@@ -143,7 +143,7 @@ func TestTrackMetric(t *testing.T) {
143143
}
144144

145145
func TestTrackLog(t *testing.T) {
146-
th1, th2 := initTelemetry(t)
146+
th1, th2 := initTelemetry()
147147

148148
report := Report{
149149
Message: "test",
@@ -157,7 +157,7 @@ func TestTrackLog(t *testing.T) {
157157
}
158158

159159
func TestTrackEvent(t *testing.T) {
160-
th1, th2 := initTelemetry(t)
160+
th1, th2 := initTelemetry()
161161

162162
event := Event{
163163
EventName: "testEvent",
@@ -172,14 +172,14 @@ func TestTrackEvent(t *testing.T) {
172172
}
173173

174174
func TestFlush(t *testing.T) {
175-
th1, th2 := initTelemetry(t)
175+
th1, th2 := initTelemetry()
176176

177177
th1.Flush()
178178
th2.Flush()
179179
}
180180

181181
func TestClose(t *testing.T) {
182-
th1, th2 := initTelemetry(t)
182+
th1, th2 := initTelemetry()
183183

184184
th1.Close(10)
185185
th2.Close(10)

0 commit comments

Comments
 (0)