mirror of
https://github.com/open-telemetry/opentelemetry-go.git
synced 2025-02-03 13:11:53 +02:00
d66a6618c2
It holds no state, already implemented.
21 lines
392 B
Go
21 lines
392 B
Go
// Copyright The OpenTelemetry Authors
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
package otlploghttp
|
|
|
|
import (
|
|
"context"
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
"github.com/stretchr/testify/require"
|
|
)
|
|
|
|
func TestExporterForceFlush(t *testing.T) {
|
|
ctx := context.Background()
|
|
e, err := New(ctx)
|
|
require.NoError(t, err, "New")
|
|
|
|
assert.NoError(t, e.ForceFlush(ctx), "ForceFlush")
|
|
}
|