mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-09-19 03:29:55 +08:00
fix tests
This commit is contained in:
@@ -58,14 +58,14 @@ func TestIdentityListFileFormat(t *testing.T) {
|
||||
s3ApiConfiguration.Identities = append(s3ApiConfiguration.Identities, identity2)
|
||||
s3ApiConfiguration.Identities = append(s3ApiConfiguration.Identities, identity3)
|
||||
|
||||
m := jsonpb.Marshaler{
|
||||
EmitDefaults: true,
|
||||
Indent: " ",
|
||||
m := jsonpb.MarshalOptions{
|
||||
EmitUnpopulated: true,
|
||||
Indent: " ",
|
||||
}
|
||||
|
||||
text, _ := m.MarshalToString(s3ApiConfiguration)
|
||||
text, _ := m.Marshal(s3ApiConfiguration)
|
||||
|
||||
println(text)
|
||||
println(string(text))
|
||||
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user