chore: execute goimports to format the code (#7983)
* chore: execute goimports to format the code Signed-off-by: promalert <promalert@outlook.com> * goimports -w . --------- Signed-off-by: promalert <promalert@outlook.com> Co-authored-by: Chris Lu <chris.lu@gmail.com>
This commit is contained in:
@@ -1,10 +1,11 @@
|
||||
package stats
|
||||
|
||||
import (
|
||||
"github.com/seaweedfs/seaweedfs/weed/pb/volume_server_pb"
|
||||
"golang.org/x/sys/windows"
|
||||
"syscall"
|
||||
"unsafe"
|
||||
|
||||
"github.com/seaweedfs/seaweedfs/weed/pb/volume_server_pb"
|
||||
"golang.org/x/sys/windows"
|
||||
)
|
||||
|
||||
var (
|
||||
|
||||
@@ -29,7 +29,7 @@ func TestBuildInfo(t *testing.T) {
|
||||
if mf.GetName() == "SeaweedFS_build_info" {
|
||||
found = true
|
||||
metric := mf.GetMetric()[0]
|
||||
|
||||
|
||||
// Verify the metric value is 1
|
||||
if metric.GetGauge().GetValue() != 1 {
|
||||
t.Errorf("Expected BuildInfo value to be 1, got %f", metric.GetGauge().GetValue())
|
||||
@@ -79,4 +79,3 @@ func TestBuildInfo(t *testing.T) {
|
||||
t.Error("BuildInfo metric not found in gathered metrics")
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user