File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
core/src/test/java/com/amplifyframework/util Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 1616package com .amplifyframework .util ;
1717
1818import com .amplifyframework .AmplifyException ;
19+ import com .amplifyframework .core .BuildConfig ;
1920import com .amplifyframework .testutils .random .RandomString ;
2021
2122import org .junit .Before ;
@@ -59,7 +60,7 @@ public void testDoubleConfiguration() throws AmplifyException {
5960 @ Test
6061 public void testWithoutConfiguration () {
6162 final String userAgent = UserAgent .string ();
62- assertTrue (userAgent .startsWith ("amplify-android/main (" ));
63+ assertTrue (userAgent .startsWith ("amplify-android/" + BuildConfig . VERSION_NAME + " (" ));
6364 }
6465
6566 /**
@@ -72,7 +73,7 @@ public void testWithEmptyMap() throws AmplifyException {
7273 UserAgent .configure (platforms );
7374
7475 final String userAgent = UserAgent .string ();
75- assertTrue (userAgent .startsWith ("amplify-android/main (" ));
76+ assertTrue (userAgent .startsWith ("amplify-android/" + BuildConfig . VERSION_NAME + " (" ));
7677 }
7778
7879 /**
You can’t perform that action at this time.
0 commit comments